简体   繁体   中英

How do you locate and click on this button? Using python and selenium to web automate

enter image description here

I'm having trouble clicking the Sign Up Now button which seems to be different than an input type button. It is also using ng-click and not sure how I can click on the button after multiple failed attempts.

Thank you for the help!

Try copiing the XPath and then using driver.find_element_by_xpath( copied xpath ) function for locating the element and then check this out - may help with clicking.

You can select it by name as JD2775 said, if you want to read a little more about it https://selenium-python.readthedocs.io/locating-elements.html

you can try with

btn = driver.find_element_by_name('btnSignUp').click()

or

btn = driver.find_element_by_name('btnSignUp')
btn.click()

or something like that

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM