I made loop and now i want to use protractor expetation for every i
. Loop works ok, but expetations doesnt. if count is 4, there should be 4 expectations. If i run a test, i get pass, without any expetations(wich should be false).
I found articles about that but i couldnt make it. I tried with push, but there is only empty value. Tnx for help
myelement.count().then(function(count){
console.log("whatever", count);
for (var i=0; i>count; i++){
var o = location.get(i);
expect(o.getText()).toEqual("something");
};
});
via Leap
No comments:
Post a Comment