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

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

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

How Can I Reuse A Variable Populated Within A Casperjs Call In A Subsequent Call?

I have the following scoping problem in a CasperJS script. baseTargetUrl is undefined when passing … Read more How Can I Reuse A Variable Populated Within A Casperjs Call In A Subsequent Call?

Casperjs Scraping Dynamic Content

I'm trying to scrape this page using Casperjs. The main function to my code works just fine, bu… Read more Casperjs Scraping Dynamic Content

Casperjs Inject Javascript Via This.evaluate

Today I tried to inject some javascript logic into remote page using CasperJS with PhantomJS togeth… Read more Casperjs Inject Javascript Via This.evaluate

Passing A Variable Into An XPath Expression In CasperJS

I am using CasperJS to do some browser automation. Now I have an array, which contains text that ca… Read more Passing A Variable Into An XPath Expression In CasperJS

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