Created
June 13, 2013 09:43
-
-
Save ruckuus/5772504 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
casper.evaluate(function triggerKeyDownEvent() { | |
var e = jQuery.Event("keydown"); | |
e.which = 13; | |
e.keyCode = 13; | |
jQuery("#questions_holder .question:nth-child(1) .txt-inline-answer").trigger(e); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment