我想通知弹出窗口点击“允许”按钮,而不是使用硒
问题描述:
下面是卡拦截弹出弹出怎么看起来像:我想通知弹出窗口点击“允许”按钮,而不是使用硒
虽然推出this URL,它显示了一个通知弹出窗口要求允许或阻止。我想点击按钮“允许”和“阻止”,而不是禁用弹出窗口。
请帮我我怎么做到这一点使用硒的webdriver用java
答
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-notifications");
您是否尝试过使用的AutoIt来对 – Vincent
点击使用【如何处理浏览器的AutoIt的 – user3091748
可能的复制不,我没有试过级别通知使用Selenium Webdriver](https://*.com/questions/38367762/how-to-handle-browser-level-notification-using-selenium-webdriver) –