Enable Flash player on Chrome(headless mode) v64 while running selenium test

297 views
Skip to first unread message

svetloz...@mtr-design.com

unread,
Aug 21, 2018, 9:59:03 AM8/21/18
to headless-dev
I'm having the following problem: I'm running selenium tests with chrome in headless mode and I tried to screen capture a website with flash content,
but the content is broken. Which chrome options need to be set to enable the flash ?

Screenshot from 2018-08-21 16-52-49.png

  My environment:
    Selenium v2.53
    Behat  v3.3
    Chrome v64


  I tried to set followed chrome option in behat.yml, but they didn't work
chromeOptions:
binary: PATH_TO_MY_BIN
args:
- "--no-sandbox"
- "--disable-gpu"
- "--dns-prefetch-disable"
- "--disable-setuid-sandbox"
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'
PluginsAllowedForUrls: "ALLOWED_URLS"
DefaultPluginsSetting: '1'



ajmc...@gmail.com

unread,
Oct 16, 2018, 5:56:24 PM10/16/18
to headless-dev, svetloz...@mtr-design.com
Reply all
Reply to author
Forward
0 new messages