Is there a ChromeDriver option to turn off redirect blocking?

I'm using chrome driver version 2.40 with chrome V 68.0.3440.106.
I cant seem to find the chrome driver option to start chrome without redirect blocking.
Already tried:

ChromeOptions options = new ChromeOptions();
List<String> switches = new ArrayList<String>();
switches.add("--disable-popup-blocking");
options.addArguments(switches);
ChromeDriver driver = new ChromeDriver(options);

This came out of the blue this week, and i cant seem to find any reference in the ChromeDriver docs :( Example

1 answer

  • answered 2018-08-15 12:18 iamsankalp89

    I done same incognito using this

    ChromeOptions options = new ChromeOptions();
    options.addArguments("-incognito");
    options.addArguments("--disable-popup-blocking");
    
    ChromeDriver driver = new ChromeDriver(options);