1

The application I am testing requires pop-up to be enabled. When a launch a new Firefox profile I get the browser message

Firefox prevented this site from opening a pop-up window

with a button on the right called Options. I can manually click the Options button and select to Allow popups from ....

Question is how can I use profile.setPreference to set to allow popups from my website and also not show this Firefox message?

Racil Hilan
  • 24,690
  • 13
  • 50
  • 55
rhanabe
  • 101
  • 2
  • 5
  • 12

1 Answers1

-1

You can save your current Firefox prifile with allowed popups and load it from file like in this case: https://stackoverflow.com/a/6830109/1165331

save you current working profile with popups via browser and loat it.

Community
  • 1
  • 1
Pazonec
  • 1,549
  • 1
  • 11
  • 35
  • After I create a new profile I want to use profile.setPreference to allow popups. – rhanabe Jun 25 '12 at 15:00
  • You can configure browser to allow popups manually, and save your profile after it. Your preference will be inside the profile. When load profile to webdriver. – Pazonec Jul 16 '12 at 11:38