bonigarcia/webdrivermanager-examples

[Question] How use option for headless mode of browser ?

gregka92 opened this issue · 1 comments

Hello community,
I have simple question - how i run my browser using your dependency with headless mode ?

in standard for selenium, in method to 'init webdriver' something like this :

ChromeOptions opts = new ChromeOptions();
opts.addArguments("--headless");

or ff

opts.addArguments("--headless");
return webdriver = new FirefoxDriver();

how have this in this driver manager ?

Ok nvm

method name(Boolean chrome, Booleand headless)
if head...true
ChromeOptions opts = new ChromeOptions();
opts.addArguments("--headless");
new driver(opts)
else new driver() // without options