phantomjs在Windows计算机中不支持Flash Player [英] phantomjs doesn't support flash player in windows machine

查看:165
本文介绍了phantomjs在Windows计算机中不支持Flash Player的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个python脚本,以从许多网站上截取屏幕截图.为此,我正在使用以下工具,

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

phantomjs和硒
python
Windows PC

phantomjs with selenium
python
windows PC

我已经用pyside(而不是phantomjs)来完成这项工作,但是我在pyside上遇到了很多问题.

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

现在我已经从Google.com找到了phantomjs工具,我已经在Windows计算机中将phantomjs和硒用于python,它可以正常工作.但是它只有一个问题phantomjs不支持Flash Player,因此无法处理youtube和某些Flash网站..请给我一些快速修复方法

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

推荐答案

PhantomJS不且可能不支持Flash和其他插件(请参见

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

但是您可以在Selenium测试中使用 SlimerJS ,这是基于Gecko引擎的无头浏览器.它确实支持WebDriver协议,因此请使用它.

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.

还有一个带有Flash支持的PhantomJS分支,但是它没有合并PhantomJS中的更改回到它,因此它在版本1.9.0处保持不变.

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.

这篇关于phantomjs在Windows计算机中不支持Flash Player的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆