现在,在每台服务器上,我通过
启动seleniumpkill Xvfb
Xvfb :1 -screen 5 1366x768x24 +extension RANDR &
export DISPLAY=:1.5
curl localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
java -jar /opt/selenium-server-standalone-2.53.0.jar -Dwebdriver.chrome.args="--use-gl=osmesa" -Dwebdriver.chrome.driver=/usr/bin/chromedriver -Dwebdriver.chrome.bin=/usr/bin/google-chrome -log /home/jenkins-user/log/selenium.log &
问题是经常硒连接死亡,我必须重新启动硒过程。有更好的方法吗?