sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01872
Re: [Question #150481]: can't run Goodbye Trash tutorial on Mac
Question #150481 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/150481
Status: Open => Answered
RaiMan proposed the following answer:
--1. the very simple example only works, if the trash contains any
elements (this is the picture used). If the trash is empty, another
image is displayed in the dock, so the one used (showing not empty
trash) cannot be found.
--2. So a more sophisticated version of this example would be:
emptyTrash = "image-of-empty-trash.png"
filledTrash = "image-of-filled-trash.png"
if exists(emptyTrash, 0):
popup("Nothing to do")
exit()
click(filledTrash)
# the rest is the same
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.