How to enable Adobe Flash in FireFox Selenium webdriver with FirefoxProfile

那年仲夏 提交于 2019-12-05 09:43:04

This didn't work for me: profile.setPreference("dom.ipc.plugins.enabled.libflashplayer.so","true");

Instead I used: profile.setPreference("plugin.state.flash", 2);

I presume the "2" also activates the plugin.

Junaid Khan

I found the solution myself.

This Post Shows how to disable Adobe flash Player in Python

And to enable it in "JAVA", Just change the false to true.

profile.setPreference("dom.ipc.plugins.enabled.libflashplayer.so","true");

And it works :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!