org.openqa.selenium.remote.UnreachableBrowserException:

16 views
Skip to first unread message

Priya K

unread,
Aug 2, 2016, 7:50:52 AM8/2/16
to webdriver

Can somebody help me to solve below issue.

Java Code:
package selenium;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.*;
import org.openqa.selenium.firefox.amd64.*;
import org.openqa.selenium.firefox.internal.*;
import org.openqa.selenium.firefox.x86.*;

public class mo1 {

public static void main(String[] args) {
// TODO Auto-generated method stub
try {
 WebDriver driver = new FirefoxDriver();
}
    catch (Exception anException) 
    {
        anException.printStackTrace();
    }
}

Error:
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.


darrell grainger

unread,
Aug 3, 2016, 4:21:55 PM8/3/16
to webdriver
Just a guess but...

The version of Selenium you are using isn't compatible with the version of Firefox you are using. For example, if you are using Firefox 46.0.1 (release in May 2016) but you are using Selenium 2.47 (release in July 2015) then the older version of Selenium will be unable to talk to the newer version of Firefox.

Additionally, if you are trying to get this working with Chrome then you have to make sure the Chrome browser, ChromeDriver.exe and Selenium versions are all in sync.

Darrell
Reply all
Reply to author
Forward
0 new messages