Python Forum
enable flash using selenium chromedriver
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
enable flash using selenium chromedriver
#1
Hello :)

Me again,...

I'm currently trying to automate some stuff in an older game, which is still running via flash ...

After I login to the website, and start the gameworld, I get an error message that 'Flash' gets blocked.
[Image: KXVHY8D]


First question... is there a way to save all changes made hand for future chrome windows ?
Because I tried to change the flash settings by hand several times, but all will be resetted after closing chrome and re-open it.


I've read through a lot of solutions, which are basically nearly all the same.
I changed the chrome options to this, to change flash settings programatically:
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--disable-features=EnableEphemeralFlashPermission")

chrome_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": "BEST URL EVER"}

chrome_options.add_experimental_option("prefs",chrome_prefs)

driver = webdriver.Chrome(chrome_options=chrome_options, service_log_path='NUL')

driver.get("https://naruto.oasgames.com/de/serverlist")
My second thought was to login to a google account, where Flash settings are enabled.
Unfortunately I can't login to any google account within the opened chrome window.
" This browwser or this app arent save. use an other brwoser which is uspported to login"

Well... anyone had such a similar issue ?

Thanks for your help !
Reply
#2
I would like an answer to this as well
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Selenium undetected Chromedriver Bot Laurin0000 1 4,066 Apr-13-2023, 09:20 PM
Last Post: Clixmaster
  WebDriverException: 'chromedriver' executable needs to be in PATH pyzyx3qwerty 9 12,742 Jun-09-2020, 05:43 PM
Last Post: Yoriz
  Selenium Chromedriver Automation Help lessthanthree 1 2,152 May-05-2020, 11:03 PM
Last Post: Larz60+
  How to identify chromedriver version? metulburr 2 7,612 Jun-13-2019, 11:37 PM
Last Post: metulburr
  Chromedriver launch new tab gahhon 15 9,953 Feb-17-2019, 06:22 PM
Last Post: metulburr
  chromedriver.exe issue gahhon 2 2,814 Feb-12-2019, 12:09 PM
Last Post: metulburr
  Enable error logging to browser for Python's Flask under Apache + mod_wsgi nikos 1 3,053 Sep-18-2018, 09:15 PM
Last Post: nikos
  Selenium chromedriver and click action Gilles95 4 13,278 Feb-07-2018, 07:28 PM
Last Post: Gilles95
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,627 Nov-03-2017, 08:41 PM
Last Post: metulburr
  Flask Flash Messages Blank Leaf 2 5,719 Oct-16-2017, 10:19 PM
Last Post: Leaf

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020