Styrow.dev
Question 83 of 99

How will identify when web element doesn't have any of the unique locater.

Question

How will identify when web element doesn’t have any of the unique locater.

Answer

we can make use of the get_attribute method to get web element from list of web elements. for control in controls: if control.get_attribute(""attributename"")==""attributeValue"": #found the matching control"" 85) How to execute java script in selnium with python driver.execute_script(script) above method will execute the java script.