[英]Python Webbot: How can I tell him to push this button?
I am currently trying to run this line of code with Webbot in Python我目前正在尝试在 Python 中使用 Webbot 运行这行代码
from webbot import Browser
bot = Browser()
bot.click(classname = "pageChangeNext")
in order to push this button, but it won't press it.为了按下这个按钮,但它不会按下它。
<img src="/bilder/design/gra_pfeil_rechts_nor.jpg" class="pageChangeNext" onclick="bookINIT(1)"> == $0
It actually logs me out, but I don't want it to do that just yet.它实际上将我注销,但我还不希望它这样做。 I'm very desperate right now, as the whole website heavily relies on JavaScript and I can't get it.
我现在非常绝望,因为整个网站严重依赖 JavaScript 而我无法理解。
How would you guys refer to this button?你们如何看待这个按钮?
Thanks!谢谢!
由于它是一个图像,您必须在单击函数调用中指定该img
标记,如下所示:
web.click(classname = 'mypassword' , tag = 'img' )
<img src="/bilder/design/gra_pfeil_rechts_nor.jpg" class="pageChangeNext" onclick="bookINIT(1)"> == $0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.