[Question] How use option for headless mode of browser ?
gregka92 opened this issue · 1 comments
gregka92 commented
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 ?
gregka92 commented
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