What I\'m trying to do is click on (or off) any of the checkboxes on my page. As you can see from the HTML, each checkbox element would appear to have a unique identifier but w
As per the HTML you have shared to invoke click() on the desired checkbox you can use either of the following solutions:
click()
CssSelector:
CssSelector
driver.FindElement(By.CssSelector("label[for=Url_Transaction_Out]")).Click();
XPath:
XPath
driver.FindElement(By.XPath("//label[@for='Url_Transaction_Out']")).Click();