CasperJS is a JavaScript-based navigation scripting & testing utility for PhantomJS.
4
votes
1answer
50 views
Testing code that changes the DOM on page load [closed]
I am in the process of writing tests for my JS code with CasperJS and Mocha. I have a function that changes the DOM and gets run on page load (through jQuery's ...
3
votes
0answers
56 views
Login to bank site and get balance and other details
I use this piece of JS code to login to my bank and get the balance. This code snippet works, but I wanted to know if I could make this code smaller, faster or if I could anything differently to ...
1
vote
0answers
96 views
Web scraping using CasperJS
Here's a few line written for web scraping using CasperJS. The code does what it should, but how can I improve it? For example, how can I make it more reusable? It could be also nice if I could remove ...