sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31620
Re: [Question #264927]: Another '__exit__' problem
Question #264927 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264927
Status: Needs information => Open
Heiri gave more information on the question:
No, this is on Mac.
Here's the whole source (I don't indent it this time):
Settings.ActionLogs = True
Settings.InfoLogs = True
Settings.DebugLogs = True
setShowActions(True)
Settings.MoveMouseDelay = 1
Settings.UserLogs = True
Settings.UserLogTime = True
Debug.on(3)
#Debug.setUserLogfile("/tmp/Sikuli.user.log")
#Debug.setLogfile("/tmp/Sikuli.log")
setAutoWaitTimeout(15)
iTunes = App("iTunes")
iTunes.focus()
#while not iTunes.window():
# wait(1)
iTunesRegion = Region(iTunes.window())
iTunesRegion.click("Devices.png")
iTunesRegion.wait("Apps.png") # Here it stops.
iTunesRegion.click("Apps.png")
iTunesRegion.wait("Entfernen.png")
#print(iTunes.window().find("Entfernen.png"))
with iTunes.window().findAll("Entfernen.png") as theButtons:
Debug.user("Found: ", theButtons.next())
--------------------------------------------------------------------
Here's the debugging output:
[log] App.focus iTunes(0) #0
[debug] App.focus iTunes(0) #0
[debug] Region: find: waiting 3.0 secs for Devices.png to appear in R[4,23 1277x1177]@S(1)
[debug] Image: reused: Devices.png (file:/Users/moetteli/Developer/Source/Applications/AppsManager/AppsManager.sikuli/Devices.png)
[debug] RobotDesktop: captureScreen: on 1 using java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[log] highlight M[196,69 28x30]@S(S(1)[0,0 1920x1200]) S:1.00 C:210,84 [229/229 msec] for 2.0 secs
[debug] highlight M[196,69 28x30]@S(S(1)[0,0 1920x1200]) S:1.00 C:210,84 [229/229 msec] for 2.0 secs
[debug] Region: find: Devices.png has appeared
at M[196,69 28x30]@S(S(1)[0,0 1920x1200]) S:1.00 C:210,84 [229/229 msec]
[debug] showTarget 185 59 50 50
[debug] Device: Mouse: moved externally: now (-623,48) was (1576,534) (mouseMovedResponse 0)
[log] CLICK on L(210,84)@S(1)[0,0 1920x1200]
[debug] CLICK on L(210,84)@S(1)[0,0 1920x1200]
[debug] Region: find: waiting 3.0 secs for Apps.png to appear in R[4,23 1277x1177]@S(1)
[debug] Image: reused: Apps.png (file:/Users/moetteli/Developer/Source/Applications/AppsManager/AppsManager.sikuli/Apps.png)
[debug] RobotDesktop: captureScreen: on 1 using java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[debug] RobotDesktop: captureScreen: on 1 using
java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[log] highlight M[8,215 105x27]@S(S(1)[0,0 1920x1200]) S:1.00 C:60,228 [166/22 msec] for 2.0 secs
[debug] highlight M[8,215 105x27]@S(S(1)[0,0 1920x1200]) S:1.00 C:60,228 [166/22 msec] for 2.0 secs
[debug] Region: find: Apps.png has appeared
at M[8,215 105x27]@S(S(1)[0,0 1920x1200]) S:1.00 C:60,228 [166/22 msec]
[debug] Region: find: waiting 3.0 secs for Apps.png to appear in R[4,23 1277x1177]@S(1)
[debug] Image: reused: Apps.png (file:/Users/moetteli/Developer/Source/Applications/AppsManager/AppsManager.sikuli/Apps.png)
[debug] RobotDesktop: captureScreen: on 1 using java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[debug] Region: checkLastSeen: still there
[log] highlight M[8,215 105x27]@S(S(1)[0,0 1920x1200]) S:1.00 C:60,228 [21/21 msec] for 2.0 secs
[debug] highlight M[8,215 105x27]@S(S(1)[0,0 1920x1200]) S:1.00 C:60,228 [21/21 msec] for 2.0 secs
[debug] Region: find: Apps.png has appeared
at M[8,215 105x27]@S(S(1)[0,0 1920x1200]) S:1.00 C:60,228 [21/21 msec]
[debug] showTarget 35 203 50 50
[log] CLICK on L(60,228)@S(1)[0,0 1920x1200]
[debug] CLICK on L(60,228)@S(1)[0,0 1920x1200]
[debug] Region: find: waiting 3.0 secs for Entfernen.png to appear in R[4,23 1277x1177]@S(1)
[debug] Image: reused: Entfernen.png (file:/Users/moetteli/Developer/Source/Applications/AppsManager/AppsManager.sikuli/Entfernen.png)
[debug] RobotDesktop: captureScreen: on 1 using java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[debug] RobotDesktop: captureScreen: on 1 using
java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[log] highlight M[530,1097 121x19]@S(S(1)[0,0 1920x1200]) S:1.00 C:590,1106 [173/40 msec] for 2.0 secs
[debug] highlight M[530,1097 121x19]@S(S(1)[0,0 1920x1200]) S:1.00 C:590,1106 [173/40 msec] for 2.0 secs
[debug] Region: find: Entfernen.png has appeared
at M[530,1097 121x19]@S(S(1)[0,0 1920x1200]) S:1.00 C:590,1106 [173/40 msec]
[debug] RobotDesktop: captureScreen: on 1 using
java.awt.Rectangle[x=4,y=23,width=1277,height=1177]
[debug] Image: reused: Entfernen.png
(file:/Users/moetteli/Developer/Source/Applications/AppsManager/AppsManager.sikuli/Entfernen.png)
[error] script [ AppsManager ] stopped with error in line 21
[error] AttributeError ( 'org.sikuli.script.Finder' object has no attribute '__exit__' )
[debug] Sikulix: cleanUp: 0
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.