As a newbie writing Macro to automate Chrome (v 75.0.3770.100) using Selenium Basic ChromeDriver (v 75.0.3770.140) in Excel (2013) VBE, I'm trying to find a way to click a button. The id keeps changing. Here's the HTML:
<td align="left">
<button type="submit" id="nHuPf" class="login_btn y-btn-primary z-button">Login</button>
</td>
I've tried this to no avail:
obj.FindElementByClass("login_btn y-btn-primary z-button").Click
' The macro starts with this:
Dim obj As New ChromeDriver
obj.Start "chrome", " "
obj.Get "https://sh.com/backoffice"
Would appreciate any advice on how to click this button using the Selenium Type Library in Excel VBE, thanks.