Tuesday 12 March 2013

Custom Firefox

The framework allows you to use a custom profile using two options. For both ways we need to set the use.profile property in config.properties to yes

Option 1

Lets create a profile named Selenium on the pc that were running the harness on.
I followed the instructions here.

When creating the profile on my computer I specified Choose Folder and created a folder named Selenium as my storage location.

I recommed loading the profile and making the following adjustments.
























Now set the profile.name property in config.properties to Selenium.
From this point onwards the hareness will use the profile named defined by profile.name when testing the firefox browser.

Option 2

Using a firefox profile directory that has not been created on the pc that were running the framework on. Follow the instructions here but make sure you select Don't Delete Files as we are going to move this folder shortly. 

Navigate to the location of the Selenium directory and MOVE this folder to a desiable location.

Now set the profile.directory property in config.properties to the absolute(escaped) path to the top level of the firefox profile directory we have just moved.

From this point onwards the hareness will use the directory defined by profile.directory when testing the firefox browser.


1 comment: