0
我想運行使用硒網格的自動化測試。因爲我的壁虎驅動我已經配置集線器和節點作爲java -jar :D\selenium-server-standalone-3.4.0.jar -role hub.
org.openqa.selenium.WebDriverException:驅動程序可執行文件的路徑必須由webdriver.gecko.driver系統屬性設置;
java -Dwebdriver.gecko.driver="D:\geckodriver.exe" -jar D:\selenium-server-standalone-3.4.0.jar -role node -hub http://localhost:4444/grid/register -port 5566 -browser browserName=Firefox,maxInstances=5
和硒罐處於「d」驅動器。
但是,當我試圖從Eclipse IDE中運行測試,它拋出一個錯誤
org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
Command duration or timeout: 96 milliseconds I am unable to identify where It is going wrong??
我使用的Firefox 47