realisation
realisation

Reputation: 505

Protractor methods insisting element they're being called on is not defined

I have a protractor test and for some weird reason protractor is telling me that elements which test as being present are undefined when I try to use protractor methods on them like .get(1) or .by.xpath('..').

Please let me know what information is needed to debug this issue.

Upvotes: 0

Views: 197

Answers (1)

realisation
realisation

Reputation: 505

I made a bad assumption and now realize that the get method does not go through the children but rather all results from given query.

Instead what I needed what element(by.css('css')).element(by.css('css')).

Upvotes: 1

Related Questions