FirefoxDriver always starting on “firstrun” page, breaking all test scripts

后端 未结 4 1748
说谎
说谎 2021-01-02 23:08

Starting just last night, the FirefoxDriver has been always opening on this page: https://www.mozilla.org/en-US/firefox/42.0/firstrun/learnmore/. I have tried c

4条回答
  •  没有蜡笔的小新
    2021-01-02 23:46

    Go to profile manager using "Firefox.exe - p"

    You will have more than one profile. Please select default profile and make it default all time.

    It should not open that page. i tested and it works fine.

    You can try this code. I am pretty sure it will work.

        ProfilesIni profile = new ProfilesIni();
        FirefoxProfile ffprofile = profile.getProfile("default");
        WebDriver driver = new FirefoxDriver(ffprofile);
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
    

提交回复
热议问题