• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - jira selenium protractor testing sdlc agile methodology

Java Selenium Tutorial & Testing Interview Questions

  • Home
  • Interview Questions
  • Java
  • Java Programs
  • Test Cases
  • Selenium
  • Manual Testing
  • Difference
  • Search
SoftwareTestingo » Selenium » Selenium Tutorial » How to Create Firefox Profile in Selenium WebDriver

How to Create Firefox Profile in Selenium WebDriver

Last Updated on: November 29, 2019 By Softwaretestingo Admin

  • Why we Need a New profile?
  • How to Create a Firefox Profile?

Firefox Profile in Selenium WebDriver: Welcome to another new post of Selenium WebDriver tutorial series, where we are going to discuss the Firefox Profile. Firefox Profile stores the settings, add-ons, customization, and other personalization settings, which are done explicitly for the firefox browser. With using this feature, we can set as per our automation requirement.

Why we Need a New profile?

Every browser has a default firefox profile, but that is not automation-friendly, so when you want to run your automation script in a reliable model, then its advisable to run an automation script in a separate firefox profile.

How to Find your Profile?

You can locate your profile on local pc that depends on your operating system, Here below we have shared the location according to the OS

Operating SystemProfile Folder Path
Windows XP / 2000 / Vista / 7 %AppData%MozillaFirefoxProfilesxxxxxxxx.default
Linux ~/.mozilla/firefox/xxxxxxxx.default/
Mac OS X ~/Library/Application/Support/Firefox/Profiles/xxxxxxxx.default/

How to Create a Firefox Profile?

Creating a new firefox profile and use that in your automation script needs three steps process, That is

  • Start the Profile Manager
  • Create a new profile
  • Use the Created Profile in Selenium Script

Start the Profile Manager

  • If there is any open firefox browser, then close that
  • Open the Run prompt by pressing (Windows + r) or press the windows and then choose and run.
  • Type “firefox.exe -p'” and click ok

After click ok, you may get another new window name, profile manager. If you can’t see, then sometimes it’s running in the background.SO you need to close properly, or for close completely, you can use CTRL+ALT+DEL. If it still does not open, then you have to need to specify the path of the firefox program

On 32 bit: Windows: “C:\Program Files\Mozilla Firefox.exe” –p
On 64 bit: Windows: “C:\Program Files(x86)\Mozilla Firefox.exe” –p

    Filed Under: Selenium Tutorial

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Important Links

    • Software Testing Jobs
    • Core Java Tutorial
    • Selenium Tutorial
    • Manual Testing Concepts Tutorial
    • Software Testing Interview Questions
    • Java Interview Questions
    • 170+ Java Programs
    • 60+ Java Selenium Interview Programs
    • Manual Test Cases
    • Software Testingo Interview Tips
    • www.softwaretestingo.com
    • You Can Share With Us Here

    Categories

    Copyright © 2019 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy