c# - How to find the element in the list of checkboxes that has only 'data-identifier' diffrent in selenium webdriver? -
No other fields like IDs, names, classes, etc. are no different. Xpath is not working. I am trying to write in sharpness
driver.fund element (By.Id ("field_Select")). Click (); Not working. This is similar to all checkboxes. Please help
If you are trying to click the check box first, then I think That this will work for you:
read online selection & lt; IWebElement & gt; Element = Driver.Fund Elements (ByID ("FieldCact")); Elements [0] .click (); Another way that can work, assuming the data-identifier is always the same: .find Element (By.CssSelector ("Input [data identifier = '109,914']")) (click).
Comments
Post a Comment