← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #241932]: Problem with sikuli when integrating it with selenium webdiver java

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, it seems, that Sikuli is working now.

You problem is daily life with Sikuli:
Sikuli did not find the given image within the standard waiting time of 3 seconds on the screen.

the only place, in your code, where this could have happened is here

 element.click();
 driver.manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);
 s.click("abc.png", 0); // here it crashes

... though it should read ;-)
 s.click("Bracelet-Builder/StartBuildingNow.png", 0);

The easiest trick to give Sikuli more time to wait for the image:
 s.click(s.wait("Bracelet-Builder/StartBuildingNow.png",10.0), 0);

where the 10 stands for the max waiting time in seconds for this
specific search.

If you think, that the image is on the screen, though Sikuli complains
not found, then you have to check your image.

It might make sense, that you scan through the docs at
http://doc.sikuli.org (at least the Region section) to get a feeling for
some basic features of Sikuli.

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