如何使用selenium独立服务器在firefox 48.0上运行测试?

Grz*_*ski 2 firefox selenium phpstorm behat

以前我使用过Behat 3和Stand Alone Server 2.45,一切正常.

我使用PhpStorm作为我的IDE.之后,在安装Firefox更新(版本48.0)后,我的测试停止工作.我还尝试使用Selenium Standalone Server ver运行测试.3.0.0-beta3但Firefox浏览器未打开.

有没有办法在浏览器FF 48.0下运行测试?也许有人想分享有关Behat,FF48和Stand Alone Server工作配置的信息?

lau*_*uda 6

使用chrome driver命令启动selenium服务器独立,

最新的硒(3.0+)

java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.0.0-beta2.jar
Run Code Online (Sandbox Code Playgroud)

旧版本(低于3)

java -jar selenium-server-standalone-2.53.1.jar -Dwebdriver.chrome.driver=chromedriver.exe
Run Code Online (Sandbox Code Playgroud)

因此,对于最新的硒,您需要先指定驱动程序,然后再指定硒罐.

注意:为您的操作系统使用适当的chromedriver版本