Alternative to PhantomJS for Testing

schlingel picture schlingel · Feb 19, 2013 · Viewed 33.2k times · Source

I'm currently trying to build a little testing suite for CI (Hudson). I've written a complex script which dynamically invokes other Scripts and populates a given DIV element.

My Selenium tests work for trivial examples (load www.google.com, search for the q-Element, etc.)

But when I try to run a complex test, which works with the Firefox-Driver, in my PhantomJS instance, it crashes. A segfault occurs.

My question is, how can I write tests for my frontend JS which works on a Hudson-Server which runs (headless).

Or is there a way of debugging what causes segfault?

Answer

Corey Goldberg picture Corey Goldberg · Jul 15, 2013

Slimer.js is similar to Phantom.js, but uses Gecko rather than Webkit.

http://slimerjs.org/