PhantomJS 2.0和PhantomJS 1.9之间的区别 [英] Difference between PhantomJS 2.0 and 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()
并非在所有元素上都可用,而仅在<input>
和<button>
元素上可用. (解决方法) - PhantomJS现在具有
Function.prototype.bind
,它不再需要 shim . - PhantomJS< 1.9.8默认使用SSLv3 有一天破坏了许多脚本.
- PhantomJS 1有一个
:nth-child()
选择器的错误.
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屋!