_assert(_isVisible(_button("Logg inn") || _button("Login")));
this checks that the login button on our login page is visible, whether it be in norwegian or english.
you can also use it for functions like _click():
_click(_button("Logg inn") || _button("Login"));
i wasn't previously aware that one could use boolean operators in sahi, since there seems to be no mention of it in the sahi apis.
IT, computer and programming tutorials and tips that i couldnt find anywhere else using google, from my daily work as a Senior Developer of solutions using Java and Linux.
20130321
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment