'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?



Solution 1:[1]

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 link1 first example

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sandeep Vokkareni