3

While automating the web page which includes Vidyo Web player plugin. If I am navigating to the Video page, the allow pop-up is showing. I have tried to with the below code to handle allow pop-up. But it's not working.

Below is the code which am using,

FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("security.mixed_content.block_active_content", true);
profile.setPreference("security.mixed_content.block_display_content", false);
WebDriver driver = new FirefoxDriver(profile);

enter image description here

Can any one help on this?

Thanks in Advance.

vsreekanth
  • 201
  • 1
  • 6
  • 18

3 Answers3

0

Referencing this answer, you probably need to source the file for the extension and use the below:

File file = new File("path to extension file");    
FirefoxProfile profile = new FirefoxProfile();
profile.addExtension(file);
WebDriver driver = new FirefoxDriver(profile);
Community
  • 1
  • 1
Josh
  • 697
  • 7
  • 17
0

How about this preference:

FirefoxProfile profile= new FirefoxProfile();
profile.setPreference(“browser.popups.showPopupBlocker”, false);
WebDriver driver = new FirefoxDriver(profile);
Eugene S
  • 6,412
  • 7
  • 58
  • 86
0

Try to set this preference to get rid of "Allow"/"Continue Blocking":

profile.setPreference("plugin.scan.plid.all", false);

Also you might need to use this to automatically allow extension

profile.setPreference("extensions.blocklist.enabled", false);
Andersson
  • 49,746
  • 15
  • 64
  • 117