Counting Elements in Sahi

167 Views Asked by At

The search of a particular query displays the it's results in the form of a elements contained inside a div. How can I count the number of search results(elements) inside that div after the search is complete. Note : Results are inside a "div" and not a table. Hence the traditional Count used for counting rows and columns in a table cannot be applied here !

1

There are 1 best solutions below

0
Adwait On

Isnt the below mentioned api working? _count Api

You can use the api as below:

var $textboxCount = _count("_elementType", _in(_div($identifier));