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.
alert a hidden element
i have this element (hidden)
<input type="hidden" name="Messages" id="Messages" value="\nThe record was saved successfully." />
Note: i already made this change in sahi : http://www.sahi.co.in/forums/discussion/1012/hidden-elements-value-is-invisible-to-_assertcontainstext#Item_2
i'm try to do this : _assert(_hidden("Messages").value); but nothing happend.
and when i try with this: _alert(Messages); show : [object HTMLInputElement]
any suggestions please, thanks
<input type="hidden" name="Messages" id="Messages" value="\nThe record was saved successfully." />
Note: i already made this change in sahi : http://www.sahi.co.in/forums/discussion/1012/hidden-elements-value-is-invisible-to-_assertcontainstext#Item_2
i'm try to do this : _assert(_hidden("Messages").value); but nothing happend.
and when i try with this: _alert(Messages); show : [object HTMLInputElement]
any suggestions please, thanks
Answers
Please try using the following:
Please let me know if it works for you.
Regards.
_alert(_getValue(_hidden("Messages")));
TypeError: Object [object Object] has no method 'findElement'
TypeError: Object [object Object] has no method 'findElement'
at Sahi._hidden (http://192.168.0.53/_s_/spr/concat.js:5486:17)
at eval (eval at (http://192.168.0.53/_s_/spr/concat.js:3480:14), :1:36)
at Sahi.ex (http://192.168.0.53/_s_/spr/concat.js:3480:9)