简体   繁体   English

有什么方法可以更改弹出窗口的默认阻止设置并重定向以允许使用 selenium java 在 chrome 中使用?

[英]Is there any way to change default block setting of pop-ups and redirect to allow in chrome using selenium java?

I want to allow the Pop-ups and redirect setting of chrome using selenium java. Is there any way?我想使用 selenium java 允许 chrome 的弹出窗口和重定向设置。有什么办法吗?

In pop-ups logic we have to mention below logic,在弹出窗口逻辑中我们不得不提到下面的逻辑,

WebDriver driver = new ChromeDriver();
String url = " https://www.google.com"; 
driver.get(url);

For more clarification please gothrough the link 1 first example如需更多说明,请查看链接1第一个示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM