Where can I find a list of all available ChromeOptions with selenium?
- open
chrome://version
in chrome address bar open the folder of Profile Path:, there will be a file
perference
copy and open the
perference
file, it's a JSON file, you can use JSON formater or JSON viewer online.
important, please open the copied one to avoid break your chrome if you did changes.I think the configuration related to flash under
profile.content_settings
- open
chrome://settings/content/flash
in chrome address bar, do waht you wanted settings for flash, your changes will be updated intoperference
file, - Find out the difference between the updated and copied
perference
file. The difference should be you wanted chrome perference. - set perference when build ChromeOptions, like
profile.content_settings.xxx=xxx
Alternative, you can pre-config the flash settings(chrome://settings/content/flash
) in current user profile and use user profile to build ChromeOptions.
Some reference:
- Manage Flash in Chrome
- Default user preferences
- Preferences vs. Policies
- Policy List
- Policy List - DefaultPluginsSetting
Policy more close to using registry/system level setting to effect all users in one machine; Preference work under user profile only effect one user, user can use it to customize upon Policy settings. But Policy has higher priority than Preference.
Here are the links of the most widely used ChromeDriver properties and ChromeOptions:
- ChromeDriver - WebDriver for Chrome: Capabilities & ChromeOptions
- Peter Beverloo: List of Chromium Command Line Switches
- Chromium Project: Chrome Preferences
- Chromium Project: Chrome Switches