如何在使用硒独立服务器的Firefox 48.0上运行测试? [英] How to run tests in behat on firefox 48.0 using selenium stand alone server?
问题描述
我使用PhpStorm作为我的IDE。之后,在安装Firefox(ver。48.0)的更新之后,我的测试停止工作。我也尝试使用Selenium Standalone Server ver进行测试。 3.0.0-beta3,但Firefox浏览器不能打开。
有没有办法在浏览器FF 48.0下运行测试?也许有人想共享有关Behat,FF48和独立服务器的工作配置信息?
解决方案启动selenium服务器独立用chrome驱动程序命令,
为最新的selenium(3.0 +)
java -Dwebdriver.chrome.driver = chromedriver.exe -jar selenium-server-standalone-3.0.0-beta2.jar
旧版本(低于3)
$ p $ java -jar selenium-server-standalone-2.53.1 .jar -Dwebdriver.chrome.driver = chromedriver.exe
所以对于最新的硒,你需要指定首先是驱动程序,然后是硒罐。
注意:为您的操作系统使用合适的chromedriver版本
Previously I worked with Behat 3 and Stand Alone Server 2.45 and everything worked properly.
I use PhpStorm as my IDE. Later, after installing the update of Firefox (ver. 48.0) my tests stop working. I also try to run tests with Selenium Standalone Server ver. 3.0.0-beta3 but Firefox browser not open.
Is there any way to run tests under browser FF 48.0? Maybe someone would like to share information about the working configuration of Behat, FF48 and Stand Alone Server?
Starting the selenium server standalone with chrome driver command,
for latest selenium (3.0+)
java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.0.0-beta2.jar
for older versions (lower than 3)
java -jar selenium-server-standalone-2.53.1.jar -Dwebdriver.chrome.driver=chromedriver.exe
So for the latest selenium you need to specify the driver first and after that, the selenium jar.
Note: use the appropriate chromedriver version for your os
这篇关于如何在使用硒独立服务器的Firefox 48.0上运行测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!