Skip to content

Instantly share code, notes, and snippets.

@harobed
Created October 17, 2012 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harobed/3905199 to your computer and use it in GitHub Desktop.
Save harobed/3905199 to your computer and use it in GitHub Desktop.
How to use jQuery simulate with CasperJS
casper.then(function() {
this.test.assertEval(function() {
$('[name="name"]').simulate("key-sequence", {sequence: "{selectall}Foobar"});
return $('.title').text() == 'Foobar';
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment