if exists/find statement not working properly

Asked by Q17

Hi,

I have the following code but when the image does not appear on the screen the press enter step still get triggered. Can you please tell me why is doing this?

if exists(image.ChangePassword):
            type(Key.ENTER)
else:
            click(image.Menu)

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Q17
Solved:
Last query:
Last reply:
Revision history for this message
Q17 (squery) said :
#1

Issue resolved