2017-08-10 55 views
0

下面是卡攔截彈出彈出怎麼看起來像:我想通知彈出窗口點擊「允許」按鈕,而不是使用硒

enter image description here

雖然推出this URL,它顯示了一個通知彈出窗口要求允許或阻止。我想點擊按鈕「允許」和「阻止」,而不是禁用彈出窗口。

請幫我我怎麼做到這一點使用硒的webdriver用java

+0

您是否嘗試過使用的AutoIt來對 – Vincent

+0

點擊使用【如何處理瀏覽器的AutoIt的 – user3091748

+0

可能的複製不,我沒有試過級別通知使用Selenium Webdriver](https://stackoverflow.com/questions/38367762/how-to-handle-browser-level-notification-using-selenium-webdriver) –

回答

0
ChromeOptions options = new ChromeOptions(); 
    options.addArguments("--disable-notifications"); 
相關問題