jasmine - Anyway to use OR in expects for Protractor -



jasmine - Anyway to use OR in expects for Protractor -

it possible x.toequal('hello').or.toequal('bye')?

i want able expects have multiple right possibilities.

you can if statement returns boolean , check if boolean true.

var test = false; if(x=='hello' || x=='bye'){ test = true; } expect(test).toequal(true);

jasmine protractor

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -