PhantomJS 2.0和PhantomJS 1.9之间的区别 [英] Difference between PhantomJS 2.0 and PhantomJS 1.9

查看:115
本文介绍了PhantomJS 2.0和PhantomJS 1.9之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能给我这些版本之间的区别?

Can anyone give me the differences between those versions?

在版本2中我可以做什么,而在早​​期版本中我不能做什么?

What can I do in version 2 that I could not do in earlier versions?

我使用PhantomJS执行Selenium生成的代码.会有性能上的改善吗?

I use PhantomJS to execute code generated by Selenium. Will be there performance improvements?

推荐答案

PhantomJS 2在其下面有一个新" WebKit版本.因此,它从PhantomJS 1中的534.34更改为PhantomJS 2中的538.1.此维度的数量差异不大,但是两个WebKit版本的发布之间存在超过两年的差异.另请参见: PhantomJS是否使用QtWebKit或Blink?

PhantomJS 2 has a "new" WebKit version underneath. So it changed from 534.34 in PhantomJS 1 to 538.1 in PhantomJS 2. The difference in numbers in this dimension is not big, but there is a more than two year difference between the release of the two WebKit versions. See also: Does PhantomJS use QtWebKit or Blink?

并不是说它的性能更好,而是它支持更多最新的Web标准和API,并且错误更少.

It's not that its performance is better, but rather that it supports more up-to-date web standards and APIs, and has less bugs.

过去的问题:

  • element.click() was not available on all elements, but only on <input> and <button> elements. (Workaround)
  • PhantomJS has now Function.prototype.bind which doesn't need a shim anymore.
  • PhantomJS <1.9.8 used SSLv3 by default which broke many scripts one day.
  • PhantomJS 1 has a bug with :nth-child() selectors.

这篇关于PhantomJS 2.0和PhantomJS 1.9之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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