Skip to content

Instantly share code, notes, and snippets.

@ariesjia
Created September 4, 2013 09:05
Show Gist options
  • Save ariesjia/6434554 to your computer and use it in GitHub Desktop.
Save ariesjia/6434554 to your computer and use it in GitHub Desktop.
angular e2e event trigger
element('#something_id').query(function(el, done){
var evt = document.createEvent('Event');
evt.initEvent('focus', false, true);
el[0].dispatchEvent(evt);
done();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment