Top "Casperjs" questions

CasperJS is a JavaScript based navigation scripting & testing utility for PhantomJS (WebKit) and SlimerJS (Gecko).

CasperJS and 'Unsafe JavaScript attempt to access frame with URL' error

I have simple page with javascript which validates email written in input: email.html: <!DOCTYPE html> <html&…

javascript phantomjs integration-testing casperjs
CasperJS loop or iterate through multiple web pages?

I have a CasperJS script that scrapes ratings and dates from one webpage. Now I want to scrape the same …

javascript loops foreach web-scraping casperjs
Can I get the original page source (vs current DOM) with phantomjs/casperjs?

I am trying to get the original source for a particular web page. The page executes some scripts that modify …

javascript phantomjs casperjs
Taking reliable screenshots of websites? Phantomjs and Casperjs both return empty screen shots on some websites

Open a web page and take a screenshot. Using ONLY phantomjs: (this is a simple script, in fact it is …

javascript phantomjs screen-scraping casperjs
File IO inside CasperJS

Is it possible do read/write files inside a CasperJS Script ? var fs = require('fs'); var data = fs.readFileSync('testdata.…

javascript node.js casperjs
casperjs: evaluating document.querySelector returns a null

I'm using the waitForSelector() and captureSelector() methods in CasperJS to wait for and select an element using a CSS selector, …

javascript dom phantomjs casperjs evaluate
Reliably detecting PhantomJS-based spam bots

Is there any way to consistently detect PhantomJS/CasperJS? I've been dealing with a spat of malicious spambots built with …

phantomjs mediawiki casperjs spam spam-prevention
How to import other javascript module in PhantomJS or CasperJS

I'm trying to build a functional test using CasperJS. caseperjs is run by a backend test suite using the following …

javascript coffeescript phantomjs casperjs
Output client-side console with casper/phantomjs

Going through the casperjs documentation I couldn't find where I could see the console.log from client-side javascript. Is this …

javascript console phantomjs headless-browser casperjs
CasperJS passing data back to PHP

CasperJS is being called by PHP using an exec() command. After CasperJS does its work such as retrieving parts of …

php web-scraping screen-scraping phantomjs casperjs