Firefox profiles for Selenium automation

20 Apr

Most automation testers probably know how to work with Firefox profiles for Selenium automation. But thought I’d point out some tips and bring up a discussion question.

This is a good article for how to create a Firefox profile for automation (or even other purposes):

And here’s a tip on how to best use Firefox profiles on Selenium 2 / WebDriver particularly if you are migrating or migrated from Selenium RC, to rather not start over from scratch building the profile the new way (from code):

use code to load an existing profile (directory), a sample in Java is presented

FirefoxProfile profile = new FirefoxProfile(new File(“C:\\PathTo\\CustomProfileDirectory”));
driver = new FirefoxDriver(profile);

And now a discussion question based on the profile creation method descripted in the referenced link/post:

What I’ve noticed, at least for FF 3.6 profile manager is that there is no option to import and export an existing FF profile. So you can only create new ones and edit existing ones on your FF installation (i.e. existing profiles you’ve set up on the machine).

As a hack, to do an import, I’ve create a dummy profile with the manager, then open FF with it, and exit FF. Then replace/overwrite content in that profile (directory) with the desired profile to import. Then open FF again with that modified profile and make any additional changes as needed, then exit. Then can manually copy back that profile folder elsewhere as export step. This method allows you to update a FF profile created on another machine.

Is there any better method to do an import/export other than my hack? Or use newer version of FF?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Anastasia Writes

politics, engineering, parenting, relevant things over coffee.

One Software Tester

Trying To Make Sense Of The World, One Test At A Time

the morning paper

an interesting/influential/important paper from the world of CS every weekday morning, as selected by Adrian Colyer

RoboSim (Robot Simulator)

Visualize and Simulate the Robotics concepts such as Localization, Path Planning, P.I.D Controller


open notebook

a happy knockout mouse.

my journey into computer science

Perl 6 Advent Calendar

Something cool about Perl 6 every day


Inspire and spread the power of collaboration

Niraj Bhatt - Architect's Blog

Ruminations on .NET, Architecture & Design

Pete Zybrick

Bell Labs to Big Data

Seek Nuance

Python, technology, Seattle, careers, life, et cetera...


New Era of Test Automation

Der Flounder

Seldom updated, occasionally insightful.

The 4T - Trail, Tram, Trolley, Train

Exploring Portland with the 4T

Midnight Musings

Thoughts on making art

Automation Guide

The More You Learn The More You Play...!

The Performance Engineer



Thoughts related to software development

%d bloggers like this: