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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -