Hi I need a little help, I'm working with selenium 3.0.1. However, I need to change to 2.53.1 because Actions (moveto and doubleclick) are not implemented yet for Firefox.
I was able to have the firefox webdriver for selenium 3.0.1. Since I downgrade it, I cannot run Firefox (chrome and IE are good!).
My code is :
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setPlatform(Platform.WIN10);
switch (browserType){
case Firefox:
FirefoxDriverManager.getInstance().setup();
//capabilities.setCapability("marionette", true);
capabilities.setBrowserName("firefox");
capabilities.setVersion("46");
ProfilesIni profile = new ProfilesIni();
FirefoxProfile ffProfile = profile.getProfile("default");
//accept the certificate
ffProfile.setAcceptUntrustedCertificates(true);
ffProfile.setAssumeUntrustedCertificateIssuer(false);
capabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);
WebDriver webDriver = new FirefoxDriver(capabilities);
break;
//... case for Chrome and IE
}
webDriver.manage().window().maximize();
webDriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
The error is :
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
Seems to be a compatibility issue... but I didn't find out yet.
Thanks
EDIT : I'm using this to load the webdriver : https://github.com/bonigarcia/webdrivermanager
So I see you are asking for version 46 but are you sure your browser didnt update past 46?
Selenium 2.53.1 does not work with versions of FF greater than 46.