Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce waitForImageCase #21

Open
simonmeggle opened this issue Feb 6, 2015 · 1 comment
Open

introduce waitForImageCase #21

simonmeggle opened this issue Feb 6, 2015 · 1 comment
Assignees
Milestone

Comments

@simonmeggle
Copy link

A dialogue which is apperaring "sometimes" can only be catched in this way:

if (screen.exists("dialog",30))  {
  screen.click("okbutton");
}

If the dialogue is not apperaring, Sakuli has to wait 30 seconds - useless.

waitForImageCase(
   "bild1", sec, _functionhandler1,
   "bild2", sec, _functionhandler2
);

would solve the problem. Sakuli would wait for two images at the same time and execute one of two function handlers.

@toschneck
Copy link
Contributor

implement after #26 and callbacks are possible

@simonmeggle simonmeggle added this to the rel-SOMEDAY milestone Mar 27, 2015
@toschneck toschneck modified the milestones: SOMEDAY, rel-v1.2, rel-v1.3 Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants