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.
_hidden() showing error
my code use to work in old version
i.e.
_set($Id,_hidden(0,"id").value);
Although i don't get the value when i run the code, i tried to paste the code in evaluate box of sahi
and now i get this ->
[Exception] TypeError: this.getDoc(win) is undefined
Anybody knows why?
i.e.
_set($Id,_hidden(0,"id").value);
Although i don't get the value when i run the code, i tried to paste the code in evaluate box of sahi
and now i get this ->
[Exception] TypeError: this.getDoc(win) is undefined
Anybody knows why?
Comments
Good to hear from you.
The second parameter to _hidden() was added recently, and specifies the dom relation.
Your old code is equivalent to:
_set($Id,_hidden(0).value);
The second parameter you had passed was never being used before, but is now being (incorrectly) used.
Regards,
Narayan
I used
_set($Id,_hidden(0).value);
instead of _set($Id,_hidden(0,"id").value) and now it reads only the last character.
say my hidden value is A001 and the output of $id = "1"; and not "A001".
Let me know please.