The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)

20130321

sahi - tip: you can use boolean operators in sahi functions

_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