How to build remote Webdriver for Chrome

后端 未结 4 1342
故里飘歌
故里飘歌 2021-02-06 03:34

I am trying to run my Selenium tests against Chrome. When I initialize driver locally:

@driver = Selenium::WebDriver.for( :chrome )

Everything

4条回答
  •  后悔当初
    2021-02-06 04:04

    Actually the error message is slightly wrong. You don't have to set the system property, but the chromedriver executable needs to be available in the PATH on the remote machine (where the server is running).

    If you want to specify the path as a property, you can do that when you launch the server, e.g.:

    java -Dwebdriver.chrome.driver=/path/to/driver -jar selenium-server-standalone.jar
    

提交回复
热议问题