Skip to content Skip to sidebar Skip to footer
Showing posts with the label Casperjs

How Can I Wait For A Socket.io Connection To Return Data Using Casperjs?

I am scraping a page which uses socket.io to populate some select tag options. How can I wait for t… Read more How Can I Wait For A Socket.io Connection To Return Data Using Casperjs?

Casperjs: How Do I Click A Remote Div And Then Update It's Class Name?

As a way of learning CasperJS, I am trying to initiate a click event on a div on a remote page, and… Read more Casperjs: How Do I Click A Remote Div And Then Update It's Class Name?

Casperjs Doesn't Evaluate Jquery Method

I injected jQuery to CasperJS: phantom.injectJs('./utils/jquery/jquery-2.1.4.js'); but wh… Read more Casperjs Doesn't Evaluate Jquery Method

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: Email valida… Read more Casperjs And 'unsafe Javascript Attempt To Access Frame With Url' Error

Set Screen Size In Phantomjs/casperjs

I'm automating access to a web site to collect data from it. Unfortunately that page detects th… Read more Set Screen Size In Phantomjs/casperjs

Cant Get Casperjs To Work On Mac Osx

Tried almost everything, ending up with removing all npm&node (and node modules) and installing… Read more Cant Get Casperjs To Work On Mac Osx

Injecting Javascript Code Into An On Click Event With Javascript And Casper.js

I've just started using casperjs after trying to use python (selenium / requests and mechanise)… Read more Injecting Javascript Code Into An On Click Event With Javascript And Casper.js

Asynchronous Process Inside A Casperjs Script For While Loop

I'm using a while loop to open a list of usernames from a csv file. For each username of these,… Read more Asynchronous Process Inside A Casperjs Script For While Loop

Write Results Into A File Using Casperjs

How do I create a file in the file system and place the contents of this.getPageContent() inside it… Read more Write Results Into A File Using Casperjs

Casperjs Cannot Click On A Div Button

I have been working on a website scraping project using CasperJS. It is an ASPX website. I could lo… Read more Casperjs Cannot Click On A Div Button

Casperjs Click Not Firing Click Event

I am having trouble with CasperJS. I load the page for our site, then try to click on the signup b… Read more Casperjs Click Not Firing Click Event

Casperjs Doesn't Work As Expected On Windows Machine

I have a casperjs script which gives the desired result when I run on a linux server, but when I ru… Read more Casperjs Doesn't Work As Expected On Windows Machine

Casperjs, How To Repeat A Step X Times Onwaittimeout?

So what I want to do is create a casperJS function which allows us to repeat a step X times, by ref… Read more Casperjs, How To Repeat A Step X Times Onwaittimeout?

Casperjs Running Out Of Memory

I'm running the following script with CasperJS and after about 1/3rd of the way through the arr… Read more Casperjs Running Out Of Memory

CasperJS Page.resource.request And Page.resource.response Callback Calls Increment When Opening Multiple URL

I've got a small problem which has to do with the following approach: I want to iterate throug… Read more CasperJS Page.resource.request And Page.resource.response Callback Calls Increment When Opening Multiple URL

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: … Read more CasperJS And 'Unsafe JavaScript Attempt To Access Frame With URL' Error