是否可以自动化提示事件,即使用selenium打开缩放会议?因此,我们通常使用selenium在CHROME webdriver上自动打开会议链接,但不能像下面的屏幕快照那样单击“打开缩放会议”按钮,是否有一种使用selenium和python的方法?
谢谢。

发布于 2020-10-08 17:25:02
是的,使用Selenium和Python自动执行提示符是可能的。
您只需要将焦点从父页面更改为警报弹出。它可以使用下面的代码片段来完成。
alert = driver.switch_to.alert //(driver is basically your webdriver) then switch_to.alert is used change focus from current page to alert.并接受弹出式窗口。
alert.accept()// To Accept the meeting link.或
alert.dismiss()// To Cancel the Pop Up.https://stackoverflow.com/questions/64267424
复制相似问题