Reputation: 1
Protractor/jamine error message:
Failed: Cannot read property 'findElementsOverride' of undefined
any clue on whats causing this error message?
Upvotes: 0
Views: 633
Reputation: 3645
More details would have helped.At-least what caused the error:)
But I have faced this issue before and you will see this when using isElementPresent()
in scenarios like below
expect(body.isElementPresent()).toBeTruthy();
The problem is that isElementPresent() is checks based on subLocator and doesnt accept null as argument
The docs state the proper way of using it
This checks whether the element identified by the subLocator is present, rather than the current element finder
element(by.css('#abc')).isElementPresent(by.css('#def')).
Upvotes: 2