[英]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.它还使用 ng-click 并且不确定在多次尝试失败后如何单击该按钮。
Thank you for the help!感谢您的帮助!
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您可以按 JD2775 所说的名称 select 它,如果您想了解更多关于它的 信息 https://selenium-python.readthedocs.io/locating-elements.ZFC35FDC70AD5FC69D23EZC83
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或类似的东西
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.