← Back to team overview

sikuli-driver team mailing list archive

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

 

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

Ray Bobak posted a new comment:
I was able to get a failure running from the command line, here is
complete log of failure with some sensitive information  deleted.

C:\sikuli>runide.cmd -r c:\sikuli\scripts\pass4
+++ 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 -r c:\sikuli\scripts\pass4
Mar 25, 2014 3:41:25 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
utf8
USERID = >>xxxxxxxxxxxxxx<<   PASSWORD = >>xxxxxxxxxxxx<<
:
only thing not displayed were print statements
:
all done next stuff
idctr = 22
statdata =>>>>>  <<<<<<
statdata = null  True
statdata = space  False
empty file
id found was  xxxxxxxxxxxxxxxxx     position =  0
mainWin captured before uninstall to C:\Users\kris\AppData\Local\Temp\sikuli-165
8904011163285165.png
click uninstall
[log] CLICK on L(1108,203)@S(0)[0,0 5760x1080]
mainWin captured before oking uninstall to C:\Users\kris\AppData\Local\Temp\siku
li-7956444703644258655.png
click ok to uninstall
[log] CLICK on L(995,492)@S(0)[0,0 5760x1080]
mainWin = R[0,0 1920x1080]@S(0)[0,0 5760x1080] E:Y, T:3.0
mainWin captured before install to C:\Users\kris\AppData\Local\Temp\sikuli-82884
61282641491864.png
fullscreen captured before install to C:\Users\kris\AppData\Local\Temp\sikuli-46
50763533158311038.png
mainWin.getLastMatch() = M[1174,185 147x42]@S(S(0)[0,0 5760x1080]) S:1.00 Target
:1247,206
click install
[log] CLICK on L(1247,206)@S(0)[0,0 5760x1080]
mainWin.getLastMatch() = M[1174,185 147x42]@S(S(0)[0,0 5760x1080]) S:1.00 Target
:1247,206
mainWin.getLastMatch() = M[888,677 139x41]@S(S(0)[0,0 5760x1080]) S:1.00 Target:
957,697
click accept
[log] CLICK on L(957,697)@S(0)[0,0 5760x1080]
mainWin.getLastMatch() = M[888,677 139x41]@S(S(0)[0,0 5760x1080]) S:1.00 Target:
957,697
screen captured before exists to   C:\Users\kris\AppData\Local\Temp\sikuli-65370
98895274661841.png
mainWin.getLastMatch() = M[888,677 139x41]@S(S(0)[0,0 5760x1080]) S:1.00 Target:
957,697
screen captured after exists to   C:\Users\kris\AppData\Local\Temp\sikuli-656192
427479170894.png
click proceed to use wifi
[error] script stopped with error in line 1929
[error] FindFailed ( can not find P(1395278354165.png) S: 0.9 on the screen. )
[error] --- Traceback --- error source first
line: module ( function ) statement
632: main (  installFromPlay )     mainWin.click(Pattern("1395278354165.png").si
milar(0.90))
[error] --- Traceback --- end --------------

C:\sikuli>


the code that was executing

608    print 'mainWin =',mainWin
609    beforeInstall = capture(mainWin)
610    print 'mainWin captured before install to',beforeInstall
611    beforeFSInstall = capture(fullscreen)
612    print 'fullscreen captured before install to',beforeFSInstall
613    mainWin.wait(Pattern("1395554852794.png").similar(0.90),60) #install button in playstore
614    print 'mainWin.getLastMatch() =',mainWin.getLastMatch()  #code added to check where click() would go
615    print 'click install'
616    mainWin.click(Pattern("1395554852794.png").similar(0.90)) #install button 
617    print 'mainWin.getLastMatch() =',mainWin.getLastMatch()
618    #wait(3)
619    mainWin.wait(Pattern("1395278296489.png").similar(0.90),60) #waiting for accept button
620    print 'mainWin.getLastMatch() =',mainWin.getLastMatch()
621    
622    print 'click accept'
623    mainWin.click(Pattern("1395278296489.png").similar(0.90))
624    print 'mainWin.getLastMatch() =',mainWin.getLastMatch()
625    beforeProceed = capture(fullscreen)
626    print 'screen captured before exists to  ',beforeProceed
627    mainWin.exists(Pattern("1395278354165.png").similar(0.90),60)
628    print 'mainWin.getLastMatch() =',mainWin.getLastMatch()
629    afterProceed = capture(fullscreen)
630    print 'screen captured after exists to  ',afterProceed
631    print 'click proceed to use wifi'
632    mainWin.click(Pattern("1395278354165.png").similar(0.90))


things are even stranger now.  none of the files listed for captured images exist.   
the mouse never moved, nothing was clicked which means 
the click on 616 did not happen which means the accept button did not appear
the wait on 619 should have failed
the click on 623 could not happen
the exists on 627 should have failed
the lastmatch did not change from previous value!
finally the click on 632 did fail


the displays are hooked up to a AMD Radeon 7850.  a mini display port has an Accell MST multi-display hub.
three ordinary HDMI cables run from hub to each monitor.  The software that controls this is the
AMD Catalyst Control Center.  The three monitors together make up an Eyefinity Display group.
The display group presents itself as a single 5760x1080 display to windows.
sikuli's view
print 'getNumberScreens() = ',getNumberScreens
print 'getBounds() = ',getBounds()

getNumberScreens() = <bound method type.getNumberScreens of <class 'sikuli.Screen.Screen'>>
getBounds() = java.awt.Rectangle[x=0,y=0,width=5760,height=1080]


Next run will be from command with -d 3 ... will add comment it/when it fails

BTW, card is amazing.  I get 30+ fps in warthunder at 'movie'
resolution.  card is rated at 800 gigaflops!!

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