← Back to team overview

sikuli-driver team mailing list archive

[Question #245849]: exists() but cannot click()

 

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

I have a piece of code that failed and I have no idea of the mechanism of the failure.  here is a snippet of code that fails 

        while exists("1395354659252.png",60):
            click("1395354659252.png")
            wait("1395354848132.png",30)
            click("1395354848132.png")



[error] script [ pass4 ] stopped with error in line 1716
[error] FindFailed ( can not find 1395354659252.png on the screen. )
[error] --- Traceback --- error source first line: module ( function ) statement 1397: main ( processTourney ) click("1395354659252.png")
[error] --- Traceback --- end --------------

line 1397 is the click on the second line.  A preview of the image shows no matches on screen at current similarity level.  How can the while exists() pass and the click() fail?

I am running SikuliX 1.0.1 on windows 7.0 64 bit 
+++ running this Java
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
+++ trying to start Sikuli IDE
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\sikuli\sikuli-ide.jar

I hate to put ano if exists() inside the while exists() and wonder if even that would fail.

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