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
2 additions
and
2 deletions
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment