I would like to install a driver in a private window using Java?

I would like to install a driver in a private window using Java?

Hello Toby-steed,

For that you need to pass arguments inside the Chrome options like:

ChromeOptions options = new ChromeOptions();
options.addArguments(""--incognito"");"