← Back to team overview

sikuli-driver team mailing list archive

[Question #660919]: I’m getting error like "main" FindFailed with using Sikuli

 

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

I am trying to run a selenium integrated sikuli java application from mac in Eclipse IDE but it is throwing errors. I have added sikuli script, selenium and chromedriver to /Applications/setup path.

Below is the code and error message, could someone please help me with this

public class Google
{

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

        System.setProperty("webdriver.chrome.driver", "/Users/venkata.b/Documents/MyProject/rewards-toolbar-chrome-automation/BrowserBinaries/chromedriver");
        WebDriver driver = new ChromeDriver();
        driver.manage().window().maximize();

        driver.get("https://www.google.com";);
        
        Screen s =new Screen();
        
        Pattern pattern=new Pattern("//Users//venkata.b//Desktop//gmailbtn.png");
       
        s.wait(pattern, 10);
       
        s.click("pattern");
        }
}

While running, I am getting following error:

Starting ChromeDriver 2.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2) on port 41404
Only local connections are allowed.
Nov 20, 2017 3:15:40 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Exception in thread "main" FindFailed: //Users//venkata.b//Desktop//gmailbtn.png: (134x60) in S(0)[0,0 1440x900] E:Y, T:3.0
  Line 2759, in file Region.java

	at org.sikuli.script.Region.wait(Region.java:2759)
	at com.toolbar.pages.Google.main(Google.java:28)

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