_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.
No comments:
Post a Comment