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.

Data table

adsads Members
edited November -1 in Sahi - Open Source
Hi,

I have a data table with table header(First name) and 10 entries.

I need to check for number of entries if limited to 10,20,30,....entries in a page.

Tried with _assertEqual(10, _table("LIST").rows.length); for 10 entries ,but it fails and gives actual

as 11 taking the header count too.

When I try with _assertEqual(12, _table("CULIST").rows[0].length); gives result as undefined.

Can anybody help me out...

Comments

  • narayannarayan Administrators
    Hi ads,

    The behaviour is the same as with javascript on the browser. Please check for 11 in such cases.


    _assertEqual(12, _table("CULIST").rows[0].length);

    should be

    _assertEqual(12, _table("CULIST").rows[0].cells.length);

    Regards,
    Narayan
Sign In or Register to comment.