Home > Mobile >  Xpath: how to find a div using the elements in the div
Xpath: how to find a div using the elements in the div

Time:07-15

i writed this line of code (i know it isn't correct)

driver.find_element(By.XPATH, '//div[contains(div[contains(string(),"Example_String"))]').click()

i need to find the div that contains a div that contains a string. how to can i do that?

sorry for grammatical errors, i'm not english

  • Related