Allow Flash content in Chrome 71 running via chromedriver
I haven't find any option yet, and I'm afraid won't find ever.
The workaround for Windows is to use Group Policies (via adding entries to registry):
reg add HKLM\Software\Policies\Google\Chrome /v DefaultPluginsSetting /d 1 /t REG_DWORD /f
reg add HKLM\Software\Policies\Google\Chrome\PluginsAllowedForUrls /v 1 /d http://* /t REG_SZ /f
reg add HKLM\Software\Policies\Google\Chrome\PluginsAllowedForUrls /v 2 /d https://* /t REG_SZ /f
or just create file with .reg extension and put text below into it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google]
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"DefaultPluginsSetting"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\PluginsAllowedForUrls]
"1"="http://*"
"2"="https://*"
then save and double-click this file.
Allow Flash content in Chrome 69 running via chromedriver
Thanks everyone for answers.
I finally have found the solution. In order to enable flash progrmatically since Chrome 69 we have to do 2 things:
- Disable Ephemeral Flash Permissions (to enable list of allowed for
Flash sites) and - Add all sites to that list.
See the following code on Java:
ChromeOptions options = new ChromeOptions();
// disable ephemeral flash permissions flag
options.addArguments("--disable-features=EnableEphemeralFlashPermission");
Map<String, Object> prefs = new HashMap<>();
// Enable flash for all sites for Chrome 69
prefs.put("profile.content_settings.exceptions.plugins.*,*.setting", 1);
options.setExperimentalOption("prefs", prefs);
nestedDriver = new ChromeDriver(options);
Related Topics
Recommended Development Web Server for Ruby on Rails 3
Setting Up Rake-Pipeline for Use with Handlebars Alongside Google App Engine
Rails - Render :Action to Target Anchor Tag
The <<- Operator on Ruby, Where Is It Documented
Character Encoding Issue in Rails V3/Ruby 1.9.2
Rails Catch-All/Globbing Routes
Error: Error Installing Ffi: Error: Failed to Build Gem Native Extension
Is the &Method(:Method_Name) Idiom Bad for Performance in Ruby
Ruby on Rails: Advanced Search
Is There a Hook Similar to Class#Inherited That's Triggered Only After a Ruby Class Definition
Ruby Differences Between += and << to Concatenate a String
How to Install Ruby-Debug When Needing Necessary Libraries And/Or Headers
Rails Devise: User_Signed_In? Not Working
How to Split a String to Get All the Substrings by Ruby
What Will Give Me Something Like Ruby Readline with a Default Value
Rails 2 to Rails 3:Using Link_To Instead of Link_To_Remote (Including Remote and Update)
Ruby Array Subtraction Without Removing Items More Than Once