refactored Casper.evaluate() in order to accept arguments!
So basically now you can do: ``` js casper.evaluate(function(username, password) { document.querySelector('#username').value = username; document.querySelector('#password').value = password; document.querySelector('#submit').click(); }, { username: 'Bazoonga', password: 'baz00nga' }) ```
Showing
2 changed files
with
92 additions
and
82 deletions
-
Please register or sign in to post a comment