← Back to team overview

sikuli-driver team mailing list archive

[Question #215524]: FindFailed: Line ?, in File ?

 

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

Hi,

Please find the below code using selenium webdriver... during the execution i am getting the below error message:
info] Windows utilities loaded.
[info] Sikuli vision engine loaded.
FindFailed: can not find D:\Selenium\ap\img1\Savefiles.png
Line ?, in File ?
	at org.sikuli.script.Region.handleFindFailed(Region.java:349)
	at org.sikuli.script.Region.wait(Region.java:420)
	at org.sikuli.script.Region.find(Region.java:308)
	at org.sikuli.script.Region.getLocationFromPSRML(Region.java:856)
	at org.sikuli.script.Region.click(Region.java:488)
	at applete.sf.main(sf.java:79)

Code:

WebDriver driver=new FirefoxDriver();
			/*driver.get("xxx");
			driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
			driver.manage().window().maximize();
			driver.findElement(By.name("loginname")).sendKeys("gh");
			driver.findElement(By.name("written")).sendKeys("fg");
			driver.findElement(By.name("fg")).click();			
			driver.switchTo().frame("fg");				
			driver.switchTo().frame("gf");
			WebElement home=driver.findElement(By.xpath());
			if(home.isDisplayed())
			home.click();			
			driver.findElement(By.xpath(".")).sendKeys("");
			driver.findElement(By.xpath("")).click();	
			driver.findElement(By.partialLinkText("")).click();
			driver.switchTo().frame("");
			driver.findElement(By.id("")).sendKeys("Dummy");			
			driver.findElement(By.id("")).click();
			Thread.sleep(3000);
		
			
				for (String handle : driver.getWindowHandles())
				{
					driver.switchTo().window(handle);
			
				}
				Thread.sleep(5000L);
			 Screen s = new Screen();
			
			  try
			  {
				 
				 s.click("D:\\Selenium\\ap\\img1\\Savefiles.png", 5);
				
			  }
			 catch(Exception ex)
			 {
				 ex.printStackTrace();
			 }
			 
			 }

}


Help me where i am going wrong


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