vendredi 27 mars 2015

protractor do all API functions really return promises?

When I ran this test:



browser.get('http://ift.tt/1Ch74en').then(function(msg){
console.log(msg);
});


I'm expecting 1 or true to be printed to indicate that the operation is successful since get() should return a promise with the value it has been resolved to. In the API docs http://ift.tt/1wWcdEY there is no indication of a return type. I'm confused which functions return a promise and which do not.


Aucun commentaire:

Enregistrer un commentaire