How to find the total count of UIATableCell for a UIATableView[2]

I need to find out the total count of UIATableCell under a UIATableView.

I was thinking to use .elementsByClassName(‘UIATableCell’), then use [.should.have.length.above(20)] to verify the total count is more than 20… but here’s a big problem - there are might other UIATableCell under different UIATableView, e.g. [3] … so I cannot do verification like this.

Can anyone please help to give me some suggestion here? many thanks!

never mind, I’ve figured it out - using [element.elements(using, value, cb) -> cb(err, elements)]