Chrome driver throwing error on mac and windows

1,102 views
Skip to first unread message

muvvala srinivas

unread,
May 26, 2017, 4:16:19 AM5/26/17
to Selenium Experts
Hello selenium experts, can you pls help me with the below query.
public static void test()

{
System.setProperty("webdriver.chrome.driver", "D:\\abcd\\Jars\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.co.in");

}

}

When i try to execute the above code, . What does the below error mean and how to resolve the issue ?



Starting ChromeDriver 2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b) on port 12768

Only local connections are allowed.

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}

(Session info: chrome=58.0.3029.110)

(Driver info: chromedriver=2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b),platform=Mac OS X 10.12.5 x86_64) (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 7 milliseconds

Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'

System info: host: 'Srinivass-MBP', ip: '192.168.0.6', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.12.5', java.version: '1.7.0_79'

Session ID: 1613523730eb9c261dc305763d890719

Driver info: org.openqa.selenium.chrome.ChromeDriver

Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/var/folders/yj/_0wt8b_s7mv0ccj32qhr61fm0000gn/T/.org.chromium.Chromium.ynPZOz, chromedriverVersion=2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b)}, networkConnectionEnabled=false, unexpectedAlertBehaviour=, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=58.0.3029.110, pageLoadStrategy=normal, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, hasTouchScreen=false, applicationCacheEnabled=false, takesScreenshot=true}]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)

at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)

at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:316)

at daytwo.Chromedriver.main(Chromedriver.java:10)


Thank you all
Kind regards

pradeep goyal

unread,
May 31, 2017, 3:00:01 AM5/31/17
to seleniu...@googlegroups.com
Can you please let me know selenium jar file version


--
You received this message because you are subscribed to the Google Groups "Selenium Experts" group.
Visit this group at https://groups.google.com/group/seleniumexperts.

Amit genius

unread,
Jun 5, 2017, 1:31:25 AM6/5/17
to seleniu...@googlegroups.com
Download latest chrome driver (https://chromedriver.storage.googleapis.com/index.html?path=2.29/) and set the correct path and it will work.

Regards,
Amit

puneet jain

unread,
Jun 8, 2017, 1:56:40 PM6/8/17
to Selenium Experts
it is 2.53.

pradeep goyal

unread,
Jun 13, 2017, 12:30:59 AM6/13/17
to seleniu...@googlegroups.com
Why are using old version of jar file..please download new selenium 3.0 jar file to work with latest chrome version.

If still you want to use old version of selenium jar file then you have to use old version of chromedriver.exe (2.24) and older version of chorme browser.

I would suggest you to download new version of slenium jar file .

and latest version chrome driver set up 

Regards,
Pradeep

Saurabh Kumar

unread,
Jun 13, 2017, 8:27:46 AM6/13/17
to seleniu...@googlegroups.com
Its not necessary to upgrade selenium jar files, however chrome driver must be new to support the latest version of Chrome, 

You can use selenium jar 2.53 with chromedriver 2.29 easily.

--
Regards,
Saurabh Kumar

Arvind Mittal

unread,
Sep 29, 2017, 5:43:07 AM9/29/17
to Selenium Experts
Hi Saurabh,

I am looking for Selenium expert.

Rgds

Arvind
9636015270

Reply all
Reply to author
Forward
0 new messages