custom firefox profile in selenium causes addons to be incompatible

1.7k Views Asked by At

Now this is tricky. I am trying to do WAP testing using firefox and selenium. For that I've created a custom profile and installed a plugin called modify headers. When I launch the profile manually, the addon works fine. But, when I use it with Selenium RC, then, Firefox disables the plugin, saying that it is incompatible with Firefox 3.6.6. This is ridiculous.If I open the same firefox profile manually, the plugin works fine. Also, when I update plugin (in the profile launched by ff),I installs a compatibility patch and works fine after restarting FF. But, when I close firefox and launch the same profile from selenium, it again gives the same problem. Please help, a lot of my test cases are based on WAP. You can also suggest alternatives to this plugin.

Thanks and Regards
Vamyip

2

There are 2 best solutions below

1
On BEST ANSWER

You can try disabling extension compatibility checking in Firefox (using your Selenium profile):

http://kb.mozillazine.org/Extensions.checkCompatibility

  1. Type about:config in the address bar and hit enter
  2. Click "I'll be careful".
  3. Right-click anywhere on the list.
  4. Select New > Boolean
  5. Enter "extensions.checkCompatibility.3.6" as the preference name
  6. Select false
0
On

I've had a few situations where I thought I was loading FireFox 3.6.x, but it was actually opening a newer version of Firefox (v16) installed on the machine. Because the profiles are stored in different places, it wasn't actually opening the profile I thought it was.

I thought I'd mention it just in case it explains varmyip's issue for other folks experiencing the same issue.