18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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
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:
instead of:var $outdated = _call(find_outdated());
Let me know if it works for you._set($outdated, find_outdated());
Regards.
Answers
The function definition is before the calling statement, right?
Regards.
yes, the functions are declared before they are called.