Selenium grid with Chrome driver (WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property)

前端 未结 6 786
孤城傲影
孤城傲影 2020-12-14 13:09

I am trying to get my Selenium Grid running on Chrome driver.

At first I started hub and node: java -jar selenium-server-standalone-2.45.0.jar -role hub java -jar se

6条回答
  •  不知归路
    2020-12-14 13:45

    Instead of specifying the driver executable in the cmd command, better approch would be :

    java -jar **selenium-server-standalone-3.8.1.jar** -role node  -hub http://localhost:4444/grid/register
    

    Save this as a .bat file and keep all the required Driver executable in the **same folder as the bat file**.

    No when you double click the bat file to start the node, it will pick up the executables automatically.

提交回复
热议问题