Webdriver does not automatically play Adobe Flash Player__web

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.