How to build remote Webdriver for Chrome

后端 未结 4 1335
故里飘歌
故里飘歌 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:18

    You have to set path to your cromedriver.exe inside the code of the test. Its something like

    System.setproperty();
    

    in Java

    I am also using Java based tests, so I cannot give you exact example for Ruby. But basically you have to tell your Ruby program where is the path to chromedriver.exe

提交回复
热议问题