PhantomJS is a headless (GUI-less) WebKit with JavaScript API. It has native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.
35
votes
1answer
1k views
VCRProxy: Record PhantomJS ajax calls with VCR inside Capybara
I already did some research in this field, but didn't find any solution. I have a site, where asynchron ajax calls are made to facebook (using JSONP). I'm recording all my HTTP requests on the Ruby ...
34
votes
3answers
10k views
How to submit a form using PhantomJS
I'm trying to use phantomJS (what an awesome tool btw!) to submit a form for a page that I have login credentials for, and then output the content of the destination page to stdout. I'm able to access ...
20
votes
4answers
4k views
How to choose between zombie.js and PhantomJS for automated web testing?
I've been looking for a JavaScript framework to perform automated web testing. Right now I'm thinking about Zombie.js and PhantomJS.
Can people who have tried both Zombie.js and PhantomJS and ended ...
19
votes
5answers
4k views
Is there a way to use PhantomJS in Python?
I want to use PhantomJS in Python. I googled this problem but couldn't find proper solutions.
I find os.popen() may be a good choice. But I couldn't pass some arguments to it.
Is there a way to use ...
18
votes
3answers
2k views
Scraping Google Keyword Tools with CasperJS and PhantomJS
I'm currently trying to scrape Google Keyword Tools with CasperJS and PhantomJS (both excellent tools, thanks n1k0 and Ariya), but I can't get it to work.
Here is my current process:
Log in with my ...
17
votes
1answer
656 views
How to end a PhantomJS script only after client-side redirects have taken place
I am working on integrating the PhantomJS headless browser into a project of mine (currently using version 1.6). For the most part, it is doing a great job at accomplishing that I need to accomplish. ...
16
votes
7answers
10k views
How can i setup & run phantomjs on ubuntu?
I setup phantomjs and recorded it to video.
http://www.dailymotion.com/video/xnizmh_1_webcam
Build instructions => http://code.google.com/p/phantomjs/wiki/BuildInstructions
Is there anything wrong ...
15
votes
2answers
10k views
Save and render a webpage with PhantomJS and node.js
I'm looking for an example of requesting a webpage, waiting for the JavaScript to render (JavaScript modifies the DOM), and then grabbing the HTML of the page.
This should be a simple example with an ...
14
votes
2answers
1k views
how can I control phantomjs to skip download some kind of resource
phantomjs has config loadImage,
but I want more,
how can I control phantomjs to skip download some kind of resource,
such as css etc...
=====
good news:
this feature is added.
...
11
votes
2answers
2k views
How to manage a 'pool' of PhantomJS instances
I'm planning a webservice for my own use internally that takes one argument, a URL, and returns html representing the resolved DOM from that URL. By resolved I mean that the webservice will firstly ...
11
votes
1answer
718 views
Having trouble running Phantomjs + node on Heroku
I've successfully got Phantomjs to work on Heroku but now I'm hitting issues with the phantomjs-node interface for node.js (see https://github.com/sgentle/phantomjs-node).
When I'm attempting to ...
10
votes
3answers
3k views
Running Phantomjs on Heroku [closed]
Is there a way to run phantomjs, a command-line tool, on Heroku?
9
votes
2answers
4k views
Is it possible to use selenium web driver to drive PhantomJS?
I'm going through the documentation for the Selenium Web driver, and it can drive chrome for example. I got thinking, wouldn't it be far more efficient to 'drive' PhantomJS?
Is there a way to use ...
9
votes
2answers
2k views
HTTP Authentication in PhantomJS
I'm trying to open a web page which requires HTTP authentication, in PhantomJS.
My script is based off the loadspeed.js example:
var page = require('webpage').create(),
t, address;
...
9
votes
1answer
3k views
Starting phantomjs server from php and waiting for it's response
I wanted to run a phantomjs server from my php script, then do a curl request to it and read it's response (which in the final version will give a path to generated pdf). When running phantomjs server ...