jeudi 30 juillet 2020

How to find this element using Selenium (python)

How to locate this element?

enter image description here

<div _ngcontent-ysj-c5>
    <div _ngcontent-ysj-c5 class="list-items unselected"> == $0
        <!---->
        " Installation "
    </div>
</div>

i have tried

driver.find_elements_by_xpath("//[contains(text(),' Installation ')]"). 

&

driver.find_element_by_xpath("//*[text()=' Installation ']").click();

but it doesn't work.

Aucun commentaire:

Enregistrer un commentaire