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

What is the most efficient way to distinguish between active text and grey or 
inactive text/button or command? I did a simple experiment on Windows to try 
and empty the recycle bin. The two line program works fine. But when the 
recycle bin is empty:

1. The image of the full recycle bin and the empty recycle bin match and the 
program continues to next command.
2. The next command is to click on the 'Empty recylce bin' text in the drop 
down menu after right click on the recycle bin image. This command also returns 
a success. When the image is not exactly same, the text now is grey as the bin 
is empty.
3. This command where it is waiting for the dialog box which gives the option 
'Yes' empty the bin, fails as the dialog box never appeared.

I would have ideally liked it to fail in the first line, or at least in the 
second. Is there a better way to make this fail if the text is not active?


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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to