Webdriver has encountered a problem when it
does not automatically play Adobe Flash player automation testing, and chrome Webdriver does not automatically play Adobe Flash Player. On the Internet to find information, it is necessary to set the options for Chrome and then directly in the selenium of the library to add the prefs option
File path:
F:\Python27\Lib\site-packages\selenium-2.xx.xx-py2.7.egg\selenium\webdriver\chrome\options.py
def __init__ (self):
self._binary_location = '
self._arguments = [' Disable-infobars ']
self._extension_ Files = []
self._extensions = []
prefs={"Profile.default_content_setting_values.plugins": 1,
" Profile.content_settings.plugin_whitelist.adobe-flash-player ": 1,
" Profile.content_ Settings.exceptions.plugins.*,*.per_resource.adobe-flash-player ": 1,
" Credentials_enable_service ": False,
' profile.password_manager_enabled ': False}
Self._experimental_options = {"Prefs":p refs}
self._debugger_address = None