phantomjs doesn't support flash player in windows machine

大城市里の小女人 提交于 2019-12-06 11:56:34

问题


I am developing a python script to take screenshots from many websites. for this I am using below tools,

phantomjs with selenium
python
windows PC

I have used pyside(instead of phantomjs) for that job but I faced many issues on pyside..

now I have found phantomjs tool from Google.com, I have used phantomjs with selenium for python in windows machine it is working flawless. but it has only one issue phantomjs doesn't support flash player, so am not able to process youtube and some flash websites.. please give me the some quick fix for this


回答1:


PhantomJS does not and probably will not support Flash and other plugins (see here).

But you can use SlimerJS in your Selenium tests, which is a headless browser based on the Gecko engine. It does support the WebDriver protocol, so use it.

There is also a fork of PhantomJS with Flash support, but it didn't merge changes in PhantomJS back into it, so it is standing still at version 1.9.0.




回答2:


Phantomjs now don't rely on xwindow enviroment since 1.5, also it has remove plugin support at that time. So there is no officially support for running flash player in current phantomjs version.

Howerver, there are so many project fork from the old phantomjs that has flash player enabled and keep update. You can try r3b phantomjs. Recently I had build a perfect service upon this project under ubuntu os.



来源:https://stackoverflow.com/questions/23533595/phantomjs-doesnt-support-flash-player-in-windows-machine

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