Selenium FireFoxDriver Profile changing after loading firefox?

前端 未结 3 716
夕颜
夕颜 2021-01-07 09:48
ProfilesIni profile = new ProfilesIni();
FirefoxProfile ffprofile = profile.getProfile(\"default\");//using firefox default profile
ffprofile.setPreference(\"permiss         


        
3条回答
  •  不要未来只要你来
    2021-01-07 10:22

    Run the firefox from command line firefox.exe -p

    After that create a new profile, set the neccessery settings and always call this profile.

    FirefoxProfile ffprofile = profile.getProfile("profileName");
    

提交回复
热议问题