How to run tests in behat on firefox 48.0 using selenium stand alone server?

后端 未结 3 1766
忘掉有多难
忘掉有多难 2020-12-06 22:56

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

3条回答
  •  隐瞒了意图╮
    2020-12-06 23:31

    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

提交回复
热议问题