如何在硒/python中编辑非硒默认警报弹出窗口?没有这样的警报问题
我在弹出窗口中有一个很大的问题,这显然不是硒中的默认警报消息。我已经搜索了所有内容,但是没有解决硒和python问题的解决方案。我寻求帮助。我想编辑并单击以下弹出窗口。
driver.switch_to.alert() does not work. As I said, it is not a selenium alert.
这是错误
,它在我使用时显示出来:
驱动程序。
I have a big problem with the pop-up window, which is clearly not a default alert message in selenium. I've searched everything but there is no solution for the selenium and Python problem. I ask for help. I want to edit and click the following popup.
driver.switch_to.alert() does not work. As I said, it is not a selenium alert.
This is error
which shows up when I'm using:
driver.switch_to.alert : selenium.common.exceptions.NoAlertPresentException: Message: no such alert
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过
- 启动Chrome时禁用default-apps
?Have you tried
--disable-default-apps
when starting up Chrome?这是单击左键的Soluton!您需要安装pynput模块!
This is the soluton to click on left button! You need to install the pynput module!