Skip to content

Instantly share code, notes, and snippets.

@hdemon
Created December 20, 2015 13:13
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 hdemon/4f24b31480752314d6ee to your computer and use it in GitHub Desktop.
Save hdemon/4f24b31480752314d6ee to your computer and use it in GitHub Desktop.
Nightmare.action('type')のはやいやつ
Nightmare.action('inputTextarea', function(selector, text, done) {
this.evaluate_now(function(selector, text) {
document.querySelector(selector).value = text;
}, done, selector, text);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment