Default options for chrome driver in selenium don't work. I have to pass these arguments:
'--headless',
'--no-sandbox',
'--disable-dev-shm-usage'
But I don't want to pass them on all clients, I want to set them on server.
According to this topic: Passing options to chrome driver selenium
... trying this:
xvfb-run -a java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium-server-standalone.jar -Dwebdriver.chrome.args="--headless"
... ang got:
Exception in thread "main" com.beust.jcommander.ParameterException: Was passed main parameter '-Dwebdriver.chrome.args=--headless' but no main parameter was defined in your arg class
What system arguments should I pass to java?