How can Custom Firefox Profiles be created and used in Selenium?

0 votes
May 22 in Selenium by Vijay
23 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Hi Vijay, to create Custom Firefox Profile and use it in Selenium, you can perform following steps:

  1. At the top of the Firefox window, click on the File menu and then select Exit.

    FF-Profile-1
  2. Press ‘Window + R’ to open Run dialog box. Type in: ‘firefox.exe -p' and then Click OK. 

    FF-Profile-3
  3. Click the ‘Create Profile’ button on the ‘Firefox – Choose User Profile’ window that comes up.

    FF-Profile-5
  4. Click ‘Next’ in the ‘Create Profile Wizard’ window that comes up.


     
  5. Type in a new name ‘customProfile’ in the ‘Enter new profile name’ box and click ‘Finish’. 


     
  6. Choose newly created profile and click "Start Firefox". 
  7. Once the Automation Profile is created, add the below code to your test scripts to Instantiating the Firefox Driver:
    ProfilesIni profile = new ProfilesIni();
    
    FirefoxProfile myprofile = profile.getProfile("customProfile");
    
    WebDriver driver = new FirefoxDriver(myprofile);
answered May 24 by Abha
• 11,040 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

How selenium can be used in devops lifecycle?

Hey Catherine, as we know that a ...READ MORE

answered May 8 in Selenium by Anvi
• 8,840 points
21 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

answered Apr 12, 2018 in Selenium by nsv999
• 5,050 points
1,081 views
0 votes
1 answer

How can I Install Selenium IDE in Firefox

Selenium IDE works with all Firefox versions, ...READ MORE

answered Apr 13, 2018 in Selenium by Meci Matt
• 9,400 points
59 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
167 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,130 points
557 views
0 votes
1 answer
0 votes
1 answer

How @Listener annotation can be used in TestNG?

Hey Barkha, TestNG @listeners are used to configure reports ...READ MORE

answered Jun 10 in Selenium by Abha
• 11,040 points
12 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.