Error: Unsupported locator strategy: findOverride
Took one of your examples:
expect(ptor.isElementPresent(protractor.By.binding('greet'))).toBe(true);
and turned it into this:
var pincode = ptor.isElementPresent(protractor.By.input('pincode')); expect(pincode).toBe(true);
And I have seriously no clue why this is happening?
Is there a reason you're saving isElementPresent to a variable? If not, you could try:
expect(ptor.isElementPresent(protractor.By.input('pincode'))).toBe(true);
Another thing to check is if the input has ng-model="pincode".
Yeah the NG-Model is pincode, and I saved it for a variable because I use it later on but I changed it to your code but still not working?
You have the latest version of Protractor installed?
yes
My bad.
isElementPresent is not supported for the 'input' locator yet. It's a bug, should be fixed soon.
Ahh, Explains so much! Thanks. Loving Protractor keep up the good work!
So now I want to assertPresence of a binding expect(ptor.isElementPresent(protractor.By.binding('"Pincode" | _'))).toBe(true);
"
{{"Pincode" | _}}
It's not working. Am I doing something wrong or
Still giving the same error
I wonder if the quotes are messing it up? You can do a partial match, so you should be able to do:
expect(ptor.isElementPresent(protractor.By.binding('Pincode'))).toBe(true);