0

I am trying to click the Verification Successful but not being able to name or ID.

<span class="gwt-RadioButton GDQHEYCCEBC GDQHEYCCEV"><input type="radio" name="gwt-uid-482" value="on" id="gwt-uid-553" tabindex="0" checked=""><label for="gwt-uid-553">Verification successful</label></span>
<input type="radio" name="gwt-uid-482" value="on" id="gwt-uid-553" tabindex="0" checked="">

Verification Successful

below are the codes I've tried.

 driver.FindElementByTag("gwt-uid-240").Click
 
  driver.FindElementByXPath("/html/body/div[6]/div[3]/div/div[2]/div/div[2]/div[3]/div/div/div/div/div/form/div[2]/div/div/div/div/div/div/div[2]/div[3]/div/div/div/div/div/div/div/div/div[1]/div/div/span[1]/input").Click
 

Appreciate any assistance.

Lucas.J
  • 3
  • 3
  • what happened with your code? Did you look at attribute selector? [1](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors) , [2](https://stackoverflow.com/a/52039249/6241235) – QHarr Nov 09 '20 at 07:05
  • Thank you for taking the time to reply QHarr. I've managed to select the first value but still not clicking into it. below is the code I've tried. I just don't know how to add the checked=""> driver.FindElementByCss("[type=checkbox][value='8897']").Click – Lucas.J Nov 10 '20 at 00:06
  • the html in the question has [type="radio"] and [value="on"] – QHarr Nov 10 '20 at 06:14

0 Answers0