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.
Issue with Elements
Hi all,
I have searched the forum and tested the other fixes but it is still not working.
The issue I'm having is one whereby, i have a loop and in the loop i have a condition that checks if that element is detected on the page, i perform some assertions, then click a span to go to next page (ajax) and the content refreshes and it goes through the same loop again until my loop ends.
However, on the 2nd round loop.. I am hitting a Error: The parameter passed to _getText was not found on the browser. The odd thing is that everything on the screen is already loaded, and it is exactly the same thing that was successfully passed.
First Loop
_sahi.setServerVar('___lastValue___1371553211574', _getText(_span("ui-paginator-next ui-state-default ui-corner-all")));
_log ("p");
Second Loop
_sahi.setServerVar('___lastValue___1371553215264', _getText(_span("ui-paginator-next ui-state-default ui-corner-all")));
Error: The parameter passed to _getText was not found on the browser
Any idea what went wrong? The element is still definitely there as when sahi hits that page on the 2nd loop because I tried to pause and do a manual check on the html and it is still there but the script just seems to fail.
I am on Sahi open source Build: 2013-02-06
I have searched the forum and tested the other fixes but it is still not working.
The issue I'm having is one whereby, i have a loop and in the loop i have a condition that checks if that element is detected on the page, i perform some assertions, then click a span to go to next page (ajax) and the content refreshes and it goes through the same loop again until my loop ends.
However, on the 2nd round loop.. I am hitting a Error: The parameter passed to _getText was not found on the browser. The odd thing is that everything on the screen is already loaded, and it is exactly the same thing that was successfully passed.
First Loop
_sahi.setServerVar('___lastValue___1371553211574', _getText(_span("ui-paginator-next ui-state-default ui-corner-all")));
_log ("p");
Second Loop
_sahi.setServerVar('___lastValue___1371553215264', _getText(_span("ui-paginator-next ui-state-default ui-corner-all")));
Error: The parameter passed to _getText was not found on the browser
Any idea what went wrong? The element is still definitely there as when sahi hits that page on the 2nd loop because I tried to pause and do a manual check on the html and it is still there but the script just seems to fail.
I am on Sahi open source Build: 2013-02-06
Answers
Can you provide us with your script file?
Regards.