selenium-grid2

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

泄露秘密 提交于 2019-11-27 14:08:03
问题 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 selenium-server-standalone-2.45.0.jar -role node -hub http://localhost:4444/grid/register than I launch my test: public class ChromeDriverTest { private WebDriver driver = null; String BaseURL,NodeURL; @Before public void before() throws Exception{ BaseURL="http://www.google.com"; NodeURL="http://localhost:4444/wd/hub"; File file =