我正在尝试在支持chrome web gl的ubuntu 14上使用java 8运行selenium 3.0。我有以下命令
java -jar /opt/selenium-server-standalone-3.0.1.jar -Dwebdriver.chrome.args="--use-gl=osmesa" -Dwebdriver.chrome.driver=/usr/bin/chromedriver -Dwebdriver.chrome.bin=/usr/bin/google-chrome -log /var/log/selenium/selenium.log > /var/log/selenium/output.log 2> /var/log/selenium/error.log & echo $! > /tmp/selenium.pid由于某种原因,我得到以下错误:
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -Dwebdriver.chrome.args=--use-gl=osmesa有没有人知道怎么修?我需要使用支持osmesa的铬合金驱动程序。
发布于 2016-10-29 02:32:36
将-jar /opt/selenium-server-standalone-3.0.1.jar作为最后一个参数(就在> /var/log/selenium/output.log之前)
https://stackoverflow.com/questions/40310911
复制相似问题