Questions tagged [phantomjs]

PhantomJS is a headless (GUI-less) WebKit with a JavaScript API. It has native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

PhantomJS is a headless (GUI-less) WebKit with a JavaScript API. It has native support for various web standards: handling, selector, , , and .

PhantomJS is a solution for headless testing of web-based applications, site scraping, page capture, renderer, converter and many other use cases. Since it isn't actually a browser, it is very fast.

PhantomJS was released January 23, 2011 by Ariya Hidayat after several years in development.

Related projects

PhantomJS has its own standalone execution environment, but it can be used through the wire protocol in various languages that provide bindings for . The tag should be used instead of [selenium] [webdriver] together.

is another standalone framework that is built on top of PhantomJS (and runs in PhantomJS).

PhantomJS needs some kind of bridge to be used directly from within a script. Popular bridges include phantom, node-phantom, nightmare ( version <1.8 used PhantomJS, now it's Electron), Horseman, navit, phridge, node-phantom-simple, jquery.go.js, SpookyJS (wrapper around CasperJS, which is a wrapper around PhantomJS), x-ray (use in addition ). Questions concerning those bridges should be tagged with as well as .

Documentation

7617 questions
3
votes
0 answers

Phantomjs creating black output from SVG using page.render

I have been running PhantomJS 1.9.6 happily on a turnkey Linux server for about 4 months now. Its purpose is to take an SVG file and create different sizes using the page.render function. This has been doing this but since a few days ago has started…
Neil Young
  • 556
  • 10
  • 23
3
votes
0 answers

Basic phantomjs issue - getElementById not working properly

I am currently working with nodejs and phantomjs (using this bridge: https://github.com/sgentle/phantomjs-node/blob/master/samples/test_phantom.js) and my simple phantomjs function isn't working properly. I'm wondering if it is a compability error…
user3175505
  • 123
  • 1
  • 6
3
votes
1 answer

Where does Chutzpah Test Adapter install PhantomJS?

I've just installed the Chutzpah Test Adapter extension to a VS2013, and run a simple Jasmine test through VS's Test Explorer. That worked fine - running the tests headless. Then I tried to run the same test through Resharper's test explorer, and…
Jeff Dege
  • 11,190
  • 22
  • 96
  • 165
3
votes
1 answer

How to organize my JavaScript unit tests when using QUnit, PhantomJS and JSCover

I am trying to set up automated unit tests for my JavaScript code using PhantomJS and QUnit, and also to generate code coverage with JSCover - basically as described here:…
Michael Bednarek
  • 169
  • 1
  • 13
3
votes
1 answer

Is there a difference in how phantomjs/selenium and jQuery auto fill forms?

I've heard of JS scripts on forms that listen on inputs for clicks and monitor input field values for change. These scripts are used to catch/block auto filling by bots. With jQuery (NojeJS-WebKit (for automating like selenium)) you can set the…
MrPizzaFace
  • 7,807
  • 15
  • 79
  • 123
3
votes
1 answer

PhantomJS issue with opening dynamically renamed frames

I'm working on traversing an iframe tree, but have run into a specific issue with PhantomJS. I am using a locally hosted page with the most basic of iframe examples.
frame 0