Pages

Monday, February 10, 2014

Selenium WebDriver with chrome issue(org.openqa.selenium.remote.UnreachableBrowserException) solution

Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.35.0', revision: '8df0c6b', time: '2013-08-12 15:43:19'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_40'
Driver info: driver.version: ChromeDriver



if you are getting above problem, go to the chromedriver.exe location and try to execute the exe. if you are able to execute the exe then below code will work..othere wise it will be permission issue to the chromedriver folder. chnage the folder location or provide the permission to the folder and double click on chromedriver.exe.

Solution:-

System.setProperty("webdriver.chrome.driver", "C:/Driver/chromedriver.exe");
System.out.println(System.getProperty("webdriver.chrome.driver"));

WebDriver driver3 = new ChromeDriver();


No comments:

Post a Comment