HowTo distinguish between enabled and disabled state of a button
Asked by
bgbig
I have one situation wherein the 'stop' button disables on GUI when the test is done successfully.
I need to wait on that screen (wait for the 'stop' button to be greyed out ) and then move on to close the window in which this operation is being performed.
I tried the following code :
while exists("img1"): wait(25)
sleep(1)
if exists("img2"):
print "Test Done"
type(
###
where img1='stop' button enabled
and the test takes around 20 seconds to run.
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.