user5836614
user5836614

Reputation: 1

Cannot read property 'findElementsOverride' of undefined

Protractor/jamine error message:

Failed: Cannot read property 'findElementsOverride' of undefined

any clue on whats causing this error message?

Upvotes: 0

Views: 633

Answers (1)

AdityaReddy
AdityaReddy

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

Related Questions