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);
Can any one help on this?
Thanks in Advance.
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);
How about this preference:
FirefoxProfile profile= new FirefoxProfile();
profile.setPreference(“browser.popups.showPopupBlocker”, false);
WebDriver driver = new FirefoxDriver(profile);
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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.