Selenium 2.53 or 2.48 does not work in Firefox 48.0

I get an error in Firefox 48.0 in a new update from firefox 47

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Output to the Firefox console: 066 addons.xpi DEBUG Updating the database by changing installed add-ons

My system and browser configuration:

Firefox 48

Selenium 2.48 also try 2.53

Window 8 64bit

I also tried the puppet driver, but did not get the corresponding result.

Any ideas on how to fix this other than downgrading Firefox?

+4
source share
3 answers

Firefox 48 Selenium 3.0.0 (Beta 3), Selenium 2.48 .

script, ....

Selenium 3.0.0 ( 3) - http://www.seleniumhq.org/download/

GeckoDriver exe - http://www.seleniumhq.org/download/

put below code in your script

public class FirefoxTest{

    public static void main(String args[]) throws InterruptedException{

    System.setProperty("webdriver.gecko.driver", "Path + geckodriver.exe");
    //For E.g ("webdriver.gecko.driver", "C://geckodriver.exe")

    DesiredCapabilities capabilities = DesiredCapabilities.firefox();
    capabilities.setCapability("marionette",true);
    WebDriver driver = new FirefoxDriver(capabilities);
    String baseUrl = "https://www.google.com";
    driver.get(baseUrl);

    }   
}
+2

Selenium (, 2.5.x) Firefox 48+. , Firefox 48 , , Mozilla Firefox. Selenium, Mozilla FirefoxDriver(), Marionette , Gecko.

, , Firefox 48 +.

+7

firefox 46, , -, selenium 2.53.x.

https://ftp.mozilla.org/pub/firefox/releases/46.0.1/win64/en-US/

firefox 46.0.1, .

+2

Source: https://habr.com/ru/post/1651139/


All Articles