I want to put variable to check if is Equal some text in the page, but in this way - doens't work:
function check($value) {
_assertEqual($value, " - VERSION", _getText(_heading1($value, " - VERSION")));
_click(_link("Edit[1]"));
}
check ("HELP")
The result:
_assertEqual("HELP", " - VERSION", _getText(_heading1("HELP", " - VERSION"))); Error: The parameter passed to _getText was not found on the browser at check (scripts/check.sah:3) at 2015-1-28 11:53:29
So, if I do in this way, it's works:
function check($value) {
_assertEqual("HELP - VERSION", _getText(_heading1("HELP - VERSION")));
_click(_link("Edit[1]"));
}
check ("HELP")
How to put this variable to works correctly?