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?
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.
PhantomJS is a discontinued headless browser used for automating web page interaction.
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.
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..
Slimer.js is similar to Phantom.js, but uses Gecko rather than Webkit.
http://slimerjs.org/
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