user2678324
user2678324

Reputation:

Protractor: How to check if the table/grid is populated?

I wanted to check if my table/grid is populated using Protractor. I believe I can do this with something like:

expect(element.all(by.repeater('someRepeate')).count()).toBe(somecount);

But the problem is I don't know the exact count as it is dynamically populated. Anyone has any idea how could I accomplish this? Thanks.

Upvotes: 1

Views: 805

Answers (1)

alecxe
alecxe

Reputation: 474241

Well, you can check that the count is more than 0:

expect(element.all(by.repeater('someRepeater')).count()).toBeGreaterThan(0);

Upvotes: 1

Related Questions