
Click on the ‘Next’ button in the ‘Create Profile Wizard’ window. Click on the ‘Create Profile’ button and Choose User Profile’ window. A dialogue box choose user profile window will look like. Windows: “C: Program Files(x86)Mozilla Firefox.exe” –p: On 64 bit. “C: Program FilesMozilla Firefox.exe” –p: On 32 bit- Windows. If it still does not open then you can try using the full path, enclosed in quotes.
Note: After clicking on the ‘OK’ button and if the Profile Manager window does not seem, it may be opened in the background that needs to be closed properly, you can use the Ctrl+Alt+Del program to kill it.
Press ‘Windows Key + R’, and type firefox – p, and click the OK button. Click on the File menu at the top of the Firefox window, and click Exit. Using the same profile in Test scripts.
First we need to start the Profile Manager,. There are three steps to create New Firefox profiles and use the same in the test script. ~/Library/Application Support/Firefox/Profiles/fault/ The location of the profile is as follows: Operating System Every time for Firefox instance a new session is created whenever selenium starts it will copy the entire profile in some temporary directory and if the profile is big, it makes it slow and unreliable.īased on the operating system you use your profile folder’s location depends. Always make sure that the profile which you have created is lightweight that includes only plug-ins, bookmarks, extensions, settings that are required for test execution. Whenever we use different profiles every time, the SSL certificates you accepted or the installed plug-ins would be different and would make the tests behave differently on the machines. During test execution to handle these requirements, we need to create a custom profile and to make test execution more reliable. A common example is handling SSL certificate settings. In the Firefox profile to make the test execution more reliable we need some special settings in the Firefox profile. What is the purpose of creating a custom Firefox profile? Sometimes we required these plug-ins bookmarks, extensions, etc. Whenever the Firefox browser is launched with Selenium WebDriver, it opens a blank Firefox browser without bookmarks, extensions, plug-ins, etc. Let’s, for example, you and your friend are using the same computer and both of them want to see their own kind of Firefox settings when they log in, then both users can create and access their own Firefox profile whenever they open Firefox browser. You can have many Firefox profile, each profile contains a separate set of user information. When Firefox is installed, it creates a profile folder by default in your local drive that saves information like passwords, bookmarks, etc. A Firefox profile is a user personalized setting that consists of the user’s bookmarks, plugins, extensions, and saved passwords that can be done on the Firefox Browser.