← Back to team overview

sikuli-driver team mailing list archive

[Question #293566]: Find failed Error

 

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

am getting a find failed error. please h

the code am using is : 


package demosikuli;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;

public class demo {

	public static void main(String[] args) throws FindFailed, InterruptedException {

WebDriver driver = new FirefoxDriver();

driver.manage().window().maximize();

driver.get("http://www.google.com";);
 
Screen screen = new Screen();

Pattern image = new Pattern("C:\\images\\google.jpg");

screen.click(screen.wait(image, 10));   

screen.type(image,"gmail");
  }
}


please provide suggestions and help me with the error.. 

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.