I'm having trouble trying to figure out how to select a radio button in Chrome (v 75.0.3770.100) using Selenium Basic ChromeDriver (v 75.0.3770.140) in Excel (2013) VBE. Here's the HTML:
<tr id="eG9Pg10" class="yw-selector-listitem z-listitem z-listitem-selected">
<td id="eG9Ph10" class="yw-selector-listcell z-listcell">
<div id="eG9Ph10-cave" class="z-listcell-content">
<span id="eG9Pg10-cm" class="z-listitem-checkable z-listitem-radio">
<i class="z-listitem-icon z-icon-radio"></i></span> Store Front Access Backoffice Role</div></td><td id="eG9Pi10" class="yw-selector-listcell z-listcell"> <div id="eG9Pi10-cave" class="z-listcell-content"> </div>
The ids keep changing each time the page is loaded.
I've tried the following to no avail:
driver.FindElementByXPath("//button[@class='z-focus-a']").Click
obj.FindElementByCss("button.z-focus-a[type='button']").Click
This is how the Macro starts off...
Dim obj As New ChromeDriver
obj.Start "chrome", " "
obj.Get "https://sh.com/backoffice"