Dealing with Firefox preferences

So far, we have learned about Firefox profiles, and how we can create our own customized profiles for Firefox Driver. Now, let's see how we can set our preferences in the profiles we create and where FirefoxDriver stores them.

According to Mozilla, a Firefox Preference is any value or defined behavior that can be set by a user. These values are saved to the preference files. If you open the profile directory by navigating to Help | Troubleshooting Information and clicking on the Show Folder button, you will see two preference files: prefs.js and user.js. All the user preferences are written to the prefs.js file by the Firefox application during the launch. A user can override those values for their chosen ...

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.