← Back to team overview

sikuli-driver team mailing list archive

[Question #680187]: if exists/find statement not working properly

 

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

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

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.