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.
popup syntax issue
I had issue with the popup to get the elements in it using this statement
_setGlobal("len",(_popup("popupname").document.getElementById("tableid").getElementsByTagName("TR").length));
If i execute then the error im getting is
_setGlobal("len",_popup("popupname").document.getElementById("tableid").getElementsByTagName("TR").length); SyntaxError: missing ) after argument list
()at:0
eval("_sahi._setGlobal(\"len\",_sahi._popup(\"Messages\")")at:0
()at<my webpage id>/_s_/spr/concat.js:2250
at<my webpage id>/_s_/spr/concat.js:2192
Please let me know wat am i doing wrong in the above syntax?
Rgds
_setGlobal("len",(_popup("popupname").document.getElementById("tableid").getElementsByTagName("TR").length));
If i execute then the error im getting is
_setGlobal("len",_popup("popupname").document.getElementById("tableid").getElementsByTagName("TR").length); SyntaxError: missing ) after argument list
()at:0
eval("_sahi._setGlobal(\"len\",_sahi._popup(\"Messages\")")at:0
()at<my webpage id>/_s_/spr/concat.js:2250
at<my webpage id>/_s_/spr/concat.js:2192
Please let me know wat am i doing wrong in the above syntax?
Rgds
Comments
Could i know how do i get the elements of popup, in my above post i've been trying to retreive the elements from a popup
Rgds,