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.

how store a variable from the browser to check later?

simbo1905simbo1905 Members
edited November -1 in Sahi - Open Source
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?

Comments

Sign In or Register to comment.