Adobe Flash in Selenium, Chrome 54.0.2840.59-1: "This plugin is not supported"

The latest update for Chrome 54.0.2840.59-1 causes Selenium to not load Flash plugins. Adobe Flash Player is chrome://plugins/disabled, but it is also disabled in a previous version of Chrome.

This only happens in tests, when Chromedriver is deployed, switching to the Flash site in a regular Chrome browser does not cause problems.

+4
source share
6 answers

Installing a flash player from https://get.adobe.com/flashplayer/ works for me on Mac OS, note that you will need to install it in the Chrome chrome browser (and not the Chrome browser on your system). To do this, run the selenium test, which opens chrome, and from there go to this URL ^ and follow the installation steps. After you finish, the next time you run the test, it should pick up the changes and should work.

+9
source

@sircapsalot: this is possible, and we have automation for our application, which is built into flash. This required the addition of custom flexible handlers, which can then be called via javascript.

Linux: - chrome 54, /usr/google -chrome, pass chromedriver:

ClassLoader classLoader = getClass().getClassLoader(); File flashPath = new File(classLoader.getResource("libpepflashplayer.so").getFile());

ChromeOptions options = new ChromeOptions(); options.addArguments("--ppapi-flash-path=" + flashPath);

return new ChromeDriver(serviceBuilder.build(), options);

Windows: @user7038292 flash

+2

Chrome 54 Adobe Flash Player NPAPI. Adobe Flash Player PPAPI ( https://get.adobe.com/flashplayer/) Chrome .

+1
HashMap<String, Object> chromePrefs = new HashMap<>();
chromePrefs.put("plugins.plugins_enabled", new String[] {
      "Chrome PDF Viewer",
      "Native Client"
      });
chromePrefs.put("plugins.plugins_disabled", new String[] {
      "Adobe Flash Player"
      });
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("prefs", chromePrefs);
0

Chrome 53, , . 54, .

-, Selenium Flash, , . , .

-1

Installing Flash fixed the problem for me, I used chrome pepperflash before and ran into the same problem you are describing.

-1
source

Source: https://habr.com/ru/post/1658100/


All Articles