if exists/find statement not working properly

Asked by Q17 on 2019-04-11

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Q17
Solved:
2019-04-11
Last query:
2019-04-11
Last reply:
Q17 (squery) said : #1

Issue resolved