Using Chrome Driver with Selenium 2

前端 未结 7 1346
情深已故
情深已故 2020-12-28 16:30

I\'m trying to use Chrome Drive to execute some of my tests, which are working perfectly with Firefox, but I\'m not being able to execute them, I\'m already verified the req

7条回答
  •  抹茶落季
    2020-12-28 17:17

    Just download the chromedriver_win32_13.0.775.0.zip and selenium-server-standalone-2.0rc3.jar from [http://code.google.com/p/selenium/downloads/list][1]

    Unzip the chromedriver_win32_13.0.775.0.zip into a folder, Eg. C:/drivers/chrome/, so that the chromedriver.exe is located at C:/drivers/chrome/chromedriver.exe.

    Register the node against the hub on port 6668 (for example)

    java -jar selenium-server-standalone-2.0rc3.jar -role webdriver -hub http://hubUrlHostname:4444/grid/register -port 6668 -browser "browserName=chrome,version=13.0,platform=windows" -Dwebdriver.chrome.driver=C:\drivers\chrome\chromedriver.exe
    

    If you access to

    http://hubUrlHostname:4444/grid/console

    you should see the Chrome driver registered.

提交回复
热议问题