Selenium grid 2 in chrome browser

0 votes

I'm using selenium-2.42.2 in Windows 7, I started a hub and typed "java -jar selenium-server-standalone.jar -role node -nodeConfig nodeconfig.json D:\selenium\chromedriver.exe" in terminal, following is junit 4 test case :

    public void setUp() throws Exception {

    driver = new ChromeDriver();

    baseUrl = "";

    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);



  public void testWebdriver() throws Exception {

    driver.get(baseUrl + "/customizedfolder/main.html");

    for (int second = 0;; second++) {

        if (second >= 60) fail("timeout");

        try { if (isElementPresent(By.xpath("//div[@id='f21TemFolder']/div/span"))) break; } catch (Exception e) {}





Below nodeconfig.jso code :


 "capabilities": [ 

{ "browserName": "*firefox", "seleniumProtocol":"Selenium","platform": "LINUX", "maxInstances": 3 },

{"browserName": "*chrome", "seleniumProtocol":"WebDriver","platform": "LINUX", "maxInstances": 3 } 


"configuration": { "nodeTimeout":120, "port":5555, "hubPort":4444, "hubHost":"localhost", "nodePolling":2000, "registerCycle":10000, "register":true, "cleanUpCycle":2000, "timeout":30000, "maxSession":1, }


but there is problem in opening chrome browser.

The error is: the path to the driver executable must be set by the system property....

I also set in system property, but failed too.

Chrome version is : 36.0.1985.143 m, chrome driver version is :2.10 how to use chrome in selenium grid 2?

Apr 27, 2018 in Selenium by Martin
• 4,210 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The problem is in -Dwebdriver arguments.

Maybe you should do something like this ...

java -jar selenium-server-standalone.jar -role node -nodeConfig nodeconfig.json\selenium\chromedriver.exe

answered Apr 27, 2018 by Samarpit
• 5,130 points

Related Questions In Selenium

0 votes
1 answer

Test in parallel with selenium grid 2

You have to register one more node ...READ MORE

answered Apr 27, 2018 in Selenium by anonymous
0 votes
1 answer

Run chrome browser in inconginto Mode in Selenium

One other way to launch Chrome in ...READ MORE

answered Jul 31, 2018 in Selenium by Meci Matt
• 9,400 points
0 votes
5 answers
+1 vote
1 answer

How to maximize chrome browser in Selenium Java?

You can use Chrome options for playing ...READ MORE

answered Dec 17, 2018 in Selenium by Nabarupa
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,130 points
0 votes
1 answer

Maximizing the browser window in Selenium WebDriver using C#

Check this first: You Can use the JavascriptExector as follows: public ...READ MORE

answered May 2, 2018 in Selenium by Samarpit
• 5,130 points
0 votes
1 answer

How to handle notifications in Python with Selenium (Chrome WebDriver)

Below will help you: You can disable the ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.