I am using sikuli in windows 8

Asked by sreedeviv on 2018-07-14

   public void runSikuli() throws FindFailed, InterruptedException{

   System.setProperty("webdriver.chrome.driver"," ");

    WebDriver driver ;

    ChromeOptions options = new ChromeOptions();
    driver = new ChromeDriver( options );


   driver.findElement(By.xpath( " ")).click();

   WebDriverWait wait3 = new WebDriverWait(driver,500);


   Screen screen = new Screen();
   Pattern pattern = new Pattern("D:\\automation\\k2.png");

  if ( screen.exists(pattern) != null)

   System.out.println("test passed");


please help.why it fail sometimes .no error shown in console.just not printing test passed sometime,i have also added wait

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

if it does not print, then the pattern does not appear within 3 seconds.

 if ( screen.exists(pattern) != null)
   System.out.println("test passed");
  } else {
   System.out.println("test failed");

if it is a timing problem, the this might help:

if ( screen.exists(pattern, 10) != null)

read the docs

Can you help with this problem?

Provide an answer of your own, or ask sreedeviv for more information if necessary.

To post a message you must log in.