← Back to team overview

sikuli-driver team mailing list archive

[Question #179247]: can not find 3.png on the screen using right() function

 

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

hi everyone, 

I am new to Sikuli and am walking through the tutorials. I ran up a problem with one tutorial (http://sikuli.org/docx/tutorials/sliders/sliders.html). It's the one about sliders. If I use the code below I get the message of the summary.
t = find("Alertvolume-1.png").right().find("3.png")

The images mentioned are visible on screen. Futher I get the errors below.


[error] Stopped

Exception in thread "MainThread" java.lang.NullPointerException
 at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:546)
 at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:460)
 at javax.swing.text.FlowView.layout(FlowView.java:184)
 at javax.swing.text.BoxView.setSize(BoxView.java:380)
 at javax.swing.text.BoxView.updateChildSizes(BoxView.java:349)
 at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:331)
 at javax.swing.text.BoxView.layout(BoxView.java:691)
 at javax.swing.text.BoxView.setSize(BoxView.java:380)
 at javax.swing.text.BoxView.updateChildSizes(BoxView.java:349)
 at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:331)
 at javax.swing.text.BoxView.layout(BoxView.java:691)
 at javax.swing.text.BoxView.setSize(BoxView.java:380)
 at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1703)
 at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1035)
 at javax.swing.text.DefaultCaret.repaintNewCaret(DefaultCaret.java:1291)
 at javax.swi

[error] An error occurs at line 1
[error] Error message:
Traceback (most recent call last):
 File "/var/folders/jz/jzCz9K55E5m08djzAmoaF++++TI/-Tmp-/sikuli-tmp9120440060708909030.py", line 1, in 
 t = find("Alertvolume-1.png").right().find("3.png")
 Line 4, in file /var/folders/jz/jzCz9K55E5m08djzAmoaF++++TI/-Tmp-/sikuli-tmp9120440060708909030.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:420)
 at org.sikuli.script.Region.wait(Region.java:511)
 at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)

org.sikuli.script.FindFailed: FindFailed: can not find 3.png on the screen.
 Line 4, in file /var/folders/jz/jzCz9K55E5m08djzAmoaF++++TI/-Tmp-/sikuli-tmp9120440060708909030.py

ng.text.DefaultCaret$1.run(DefaultCaret.java:1270)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
 at java.awt.EventQueue.access$000(EventQueue.java:85)
 at java.awt.EventQueue$1.run(EventQueue.java:638)
 at java.awt.EventQueue$1.run(EventQueue.java:636)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:1

22)

Does anyone what I am doing wrong and I use the version 1.0rc3 (r905)

Thanks in advance.

grtz Henk

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