18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Gridview row count

Debakanta sahuDebakanta sahu Members
edited November -1 in Sahi - Open Source
Hi,

In my application no of rows in Gridview change dynamically according to the combo box value selection.
like,
when i select 5 from the combo box then same 5 records are appeared on the Grid view and so on for 10,... .

I use below code in my script but it shows the error as
ReferenceError: "count" is not defined and
undefined: missing ) after argument list

<browser>

function count()
{
var $Gridviewid = document.getElementById("_f("abc").vbox(7)");
var $id=0;
for($id=0;$id<$Gridviewid.rows.count;$id++)
{
var $Rowid = $Gridviewid.rows[$id];
}
return $Rowid;
}
</browser>
count();

Regards
Debakanta
Sign In or Register to comment.