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.

_table not recognized in the script

pramachandranpramachandran Members
edited November -1 in Sahi - Open Source
I am trying to retrieve a web table's row count in my script. It works fine while i test it through the record tab. but when i put it in script it says

JSERROR TypeError: Cannot find function _table.

var rwcnt ;
rwcnt =_table("tablename").rows.length;

please help!!!

if this is not possible could someone tell me how t continue on error atleast? i tried _continueOnError function but it does not work.

Comments

  • narayannarayan Administrators
    You will have to do

    _set($rwcnt, _table("tablename").rows.length);
Sign In or Register to comment.