vendredi 20 mars 2015

Click not working in Ember-CLI integration test with PhantomJS

I'm trying to click a button in my Ember-CLI integration test, and it works with Chrome, but tells me click is undefined in PhantomJS. I've seen some other posts that recommend defining your own click event for PhantomJS, but I couldn't get that to work.



$("a:contains('Next'):visible")[0].click();


That works in Chrome, but not PhantomJS. The built in click helper, in Ember-CLI, appears to not work with "a:contains('Next'):visible".


Can anyone help?





Aucun commentaire:

Enregistrer un commentaire