← Back to team overview

sikuli-driver team mailing list archive

[Question #206320]: Script doesn't wait until image is found

 

New question #206320 on Sikuli:
https://answers.launchpad.net/sikuli/+question/206320

I am trying to select an entry of a dropdown and wait for the result of  the dropdown change to be displayed before continuing. To achieve this I want to use the fact that the selected entry is displayed in blue after the dropdown is closed after selection and turns white after the results are displayed. 
However the script continues after the wait(5) command and displays the popup, although the <image of select with label (with selected option)> is not displayed yet.

This is the code I use:
---
click(<image of select with label>)
wait("<image of entry of select>",FOREVER)
click("<image of entry of select>")
wait(5)
wait("<image of select with label (with selected option)>",FOREVER)
popup("Results are displayed")
---

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.