How to create profile in Firefox using Selenium WebDriver

前端 未结 5 765
独厮守ぢ
独厮守ぢ 2021-01-05 07:18

When we write something like this:

FirefoxProfile ffprofile = new FirefoxProfile(new File(\"D:\\\\Selenium\"));

Does it mean we are creatin

5条回答
  •  长情又很酷
    2021-01-05 08:08

    Create profile in Firefox browser.

    Here is the code for using newly created firefox profile.

    ProfilesIni profile = new ProfilesIni();
    FirefoxProfile myprofile = profile.getProfile("firefox profile name");
    WebDriver driver = new FirefoxDriver(myprofile);
    

提交回复
热议问题