java - why selenium try to connect to localhost at "X" port -


i new selenium, trying out following file f = new file("/usr/bin/google-chrome"); system.setproperty("webdriver.chrome.driver", f.getabsolutepath()); webdriver driver = new chromedriver(); //wait = new webdriverwait(driver, 30); driver.get("http://www.google.com");

empty chrome tab been opening url "www.google.com" not loading. after few seconds getting error

exception in thread "main" org.openqa.selenium.remote.unreachablebrowserexception: not start new session. possible causes invalid address of remote server or browser start-up failure.  caused by: org.openqa.selenium.net.urlchecker$timeoutexception: timed out waiting [http://localhost:11037/status] available after 20002 ms 
  1. why trying connect localhost @ "x"(changing) instead of loading google webpage.

  2. how can overcome 1 getting same problem firefox occuring.

unreachablebrowserexception occurs when code fails connect browser. may because of driver executable or browser executable.

please check -

  • selenium server jar version compatibility browser version.
  • path of driver executable.
  • version of executable (based on browser version)

if issue exists please mention build info , system info in exception details.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -