Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to PhantomJS for Testing

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?

like image 289
schlingel Avatar asked Feb 19 '13 17:02

schlingel


People also ask

Is PhantomJS still supported?

As of spring 2017, PhantomJS is not supported anymore and you should migrate your project to an alternative environment. Here is what you can do. In April 2017, Vitaly Slobodin announced, that he's stepping down as a developer and maintainer of PhantomJS, the headless WebKit browser.

Is PhantomJS deprecated?

PhantomJS is a discontinued headless browser used for automating web page interaction.

Is PhantomJS faster?

Strictly speaking PhantomJS is the browser-simulator, using WebDriver to drive the browser. Today that functionality exists in Headless Chrome, a faster, better maintained, and higher fidelity browser engine.

Does puppeteer use PhantomJS?

Key Location, Tailor Brands, and NationBuilder are some of the popular companies that use PhantomJS, whereas Puppeteer is used by Huddle, Better, and Orangesys Inc..


1 Answers

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

http://slimerjs.org/

like image 107
Corey Goldberg Avatar answered Oct 13 '22 18:10

Corey Goldberg