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.
how store a variable from the browser to check later?
I the following script:
var $value = _textbox("sahi_debug").value;
// do some more work
_wait(50000, _textbox("sahi_debug").value != $value);
the script does not load. If I make it
var $value = _textbox("sahi_debug").value;
// do some more work
_wait(50000, _textbox("sahi_debug").value != "yes");
then things work. The following line work to output the value:
var $value = _textbox("sahi_debug").value;
_log("value is:"+$value);
so why cannot I use $value within a condition of the wait statement?
var $value = _textbox("sahi_debug").value;
// do some more work
_wait(50000, _textbox("sahi_debug").value != $value);
the script does not load. If I make it
var $value = _textbox("sahi_debug").value;
// do some more work
_wait(50000, _textbox("sahi_debug").value != "yes");
then things work. The following line work to output the value:
var $value = _textbox("sahi_debug").value;
_log("value is:"+$value);
so why cannot I use $value within a condition of the wait statement?
Comments
Please have a look at: http://sahi.co.in/w/sahi-script-and-javascript on scripting using Sahi.
Regards,
Narayan