title: Selenium grid with Chrome driver (WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property)
body: <p>I am trying to get my Selenium Grid running on Chrome driver.</p>
  
  <p>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 <a href="http://localhost:4444/grid/register">http://localhost:4444/grid/register</a></p>
  
  <p>than I launch my test:</p>
  
  <pre><code>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 = new File("C:\\Users\\pushkaryova\\Desktop\\Nexus\\driver\\chromedriver.exe");
      System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
      DesiredCapabilities capa =DesiredCapabilities.chrome();
      capa.setBrowserName("chrome");
      capa.setPlatform(Platform.ANY);
      driver=new RemoteWebDriver(new URL(NodeURL),capa);
  }
  
  @Test
  public void GoogleSearch() throws Exception {
      driver.get("http://www.google.com");
      WebElement searchBox = driver.findElement(By.xpath("//div[3]/div/input[1]"));
      hightlight(searchBox);
      driver.findElement(By.xpath("//div[3]/div/input[1]")).clear();
      driver.findElement(By.xpath("//div[3]/div/input[1]")).sendKeys("Test");
      driver.findElement(By.xpath("//button")).click();
  
  }
  
  public void hightlight(WebElement webElement) throws InterruptedException {
      for (int i = 0; i &lt; 2; i++) {
          JavascriptExecutor js = (JavascriptExecutor) driver;
          js.executeScript(
                  "arguments[0].setAttribute('style', arguments[1]);",
                  webElement, "color: red; border: 3px solid red;");
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>and get an error:
  org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property</p>
  
  <p>What is wrong in my code?</p>