Thowing error while using wait..

Asked by Vaishali

screen s=new screen()
s.click(new Location(521+x,434+y));
s.wait(3);
 s.mouseMove(new Location(611,222));
s.wait(1);
s.mouseDown(Button.LEFT);
when i run the abv code it throw's the following error..
Exception in thread "main" java.lang.IllegalMonitorStateException
 at java.lang.Object.wait(Native Method)
 at flipkart.flipClass.main(flipClass.java:40)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

running in swing app?

Revision history for this message
Vaishali (vaishoo-vasu) said :
#2

No.. normal sikuli eclipse pgm...

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

Uuups, basic Sikuli problem since beginning:
s.wait(3.0)
or
s.wait(3f)

- must be double or float

Revision history for this message
Vaishali (vaishoo-vasu) said :
#4

Thanks RaiMan, that solved my question.