Home > Mobile >  How can i find this Login Button as element in Python/Selenium?
How can i find this Login Button as element in Python/Selenium?

Time:05-21

I try to find this element but im so clueless what i should use (xpath, tag, name, ...) to find and click it. I also tried SelectorsHub. Element: <a data-v-56633ff2 xpath="1">…</a>

CodePudding user response:

Visit the page that you're trying to automate, and then press F12.

'Ctrl Shift C' to pick the element (you said you want to find login button) by using your mouse. And then right click & copy Xpath of it.

CodePudding user response:

Just right click on the element and press the inspect, and right click on the element marked with blue from the opened screen and click copy > xpath then,

driver.find_element_by_xpath('//*[@id="idOfElement"]')

and do with it whatever you want.

  • Related