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.

ReferenceError: (function) is not defined

simmerlsimmerl Members
edited October 2013 in Sahi - Open Source
Hello,
I want to parse a HTML page with a table for all elements marked as "outdated".
The code i am using is the following:

<browser>
function find_outdated(){
loutdated = new Array();
table = document.getElementById("table36")
for (var i = 0, row; row = table.rows; i++) {
...blabla...
loutdated.push(name);
}
return loutdated
}
</browser>

_set($outdated, find_outdated());
...blabla...


All I am getting is the error

ReferenceError: find_outdated() is not defined

What am I doing wrong?

Thanks & Regards,

simmerl


Best Answer

  • Please try using:
    var $outdated = _call(find_outdated());
    
    instead of:
    _set($outdated, find_outdated());
    
    Let me know if it works for you.

    Regards.

Answers

Sign In or Register to comment.