Can anyone give me the differences between those versions?
What can I do in version 2 that I could not do in earlier versions?
I use PhantomJS to execute code generated by Selenium. Will be there performance improvements?
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?
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.
Problems in the past:
element.click()
was not available on all elements, but only on <input>
and <button>
elements. (Workaround)Function.prototype.bind
which doesn't need a shim anymore.:nth-child()
selectors.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With