Good Alternative to PhantomJS for Integration ( E2E ) Testing

608 views Asked by At

I've been trying to use PhantomJS for headless browser testing, but there so many weird things going on. Any recommendations for alternatives?

1

There are 1 answers

2
Nico On BEST ANSWER

After dealing with this same dilemma myself, I can wholeheartedly recommend using your preferred Selenium webkit (mine is Chrome) in conjunction with XVFB.

XVFB allows you to heedlessly run a browser like Firefox, Chrome, etc. which basically eradicates all of the bugginess that inherently comes with using PhantomJS. While it’s definitely an awesome piece, it’s inner workings tend to have different interactions at times (I ran into issues for instance with not being able to TAB from one element to another like one can in any browser). If you are using Jenkins, there is an incredibly awesome Plugin which literally takes one click of a button. Otherwise, I’d definitely recommend checking this out.

Hope this helps!