← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #242651]: can not find images.sikuli/1390382312030.png on the screen

 

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

    Status: Answered => Open

karamjeet kaur is still having a problem:
I am using exact configuration as you mentioned 
public void testUntitled() throws Exception {
     driver.get("http://www.thecharmworks.com";);
    driver.findElement(By.xpath("html/body/div[4]/footer/div[1]/div/div[2]/a/img")).click();
    Settings.OcrTextRead =true;
    Debug.setDebugLevel(3);
  s.setAutoWaitTimeout(2);
    s.exists("home/karamjeet/projects/charm/hot-deploy/tcw/images.sikuli/1390382312030.png");
    s.waitVanish("home/karamjeet/projects/charm/hot-deploy/tcw/images.sikuli/1390382312030.png");         s.doubleClick("home/karamjeet/projects/charm/hot-deploy/tcw/images.sikuli/1390382312030.png");
     s.wait(2);
    s.doubleClick("home/karamjeet/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390382392318.png");
    s.wait(2););
    s. hover("home/karamjeet/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390382826414.png");
    s.doubleClick("images.sikuli/1390382861254.png");
    s.wait(2);
    s.exists("home/karamjeet/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390383721795.png");
    s.dragDrop("home/karamjeet/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390383732435.png", "home/karamjeet     /projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390383738548.png");
    s.wait(2);
    s.doubleClick("home/karamjeet/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390384080473.png");
    s.wait(4);
    s.exists("home/karamjeet/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390384299725.png");
    s.wait(2);
    assertTrue(true);

but the errorlog is saying
<error message="Text search currently switched off" type="org.sikuli.script.FindFailed">FindFailed: Text search currently switched off
  Line 1671, in file Region.java

	at org.sikuli.script.Region.wait(Region.java:1671)
	at org.sikuli.script.Region.find(Region.java:1590)
	at org.sikuli.script.Region.getLocationFromTarget(Region.java:1991)
	at org.sikuli.script.Region.doubleClick(Region.java:2246)
	at org.sikuli.script.Region.doubleClick(Region.java:2230)
	at com.thecharmworks.selenium.CharmWorksBraceletBuilderTest.testUntitled(CharmWorksBraceletBuilderTest.java:49)
	at com.thecharmworks.selenium.CharmWorksBraceletBuilderTest.setUp(CharmWorksBraceletBuilderTest.java:22)
</error>
  </testcase>
  <system-out><![CDATA[[debug] Screen.capture: java.awt.Rectangle[x=0,y=0,width=1366,height=768]
[debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=0,y=0,width=1366,height=768]
[debug] ResourceLoaderBasic: SikuliX Package Build: 1.0.1 12SEP2013135849
[debug] ResourceLoaderBasic: check: we are running on arch: amd64
[debug] ResourceLoaderBasic: check: using Java at: /usr/lib/jvm/jdk1.6.0_38/jre/
[debug] ResourceLoaderBasic: check: Exists libs folder at location of jar? YES: /home/paridhi/projects/charm/hot-deploy/tcw/lib/
[debug] ResourceLoaderBasic: checkLibsDir: /home/paridhi/projects/charm/hot-deploy/tcw/lib/libs
[debug] ResourceLoaderBasic: loadLib: JXGrabKey
[debug] ResourceLoaderBasic: loadLib: Found: JXGrabKey
[debug] ResourceLoaderBasic: loadLib: Now loaded: JXGrabKey
[debug] ResourceLoaderBasic: checkLibsDir: Using libs at: /home/paridhi/projects/charm/hot-deploy/tcw/lib/libs
[debug] ResourceLoaderBasic: loadLib: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Found: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Now loaded: VisionProxy
[error] home/paridhi/projects/tcw-ofbiz/hot-deploy/charm/images.sikuli/1390382312030.png looks like a file, but not on disk. Assume it's text.
[error] Region.find(text): text search is currently switched off
[error] Region.exists: seems that imagefile could not be found on disk
[debug] waiting for home/paridhi/projects/charm/hot-deploy/tcw/images.sikuli/1390382312030.png to appear
[debug] Screen.capture: java.awt.Rectangle[x=0,y=0,width=1366,height=768]
[debug] RobotDesktop: captureScreen: on 0 using java.awt.Rectangle[x=0,y=0,width=1366,height=768]
[error] home/paridhi/projects/charm/hot-deploy/tcw/images.sikuli/1390382312030.png looks like a file, but not on disk. Assume it's text.
[error] Region.find(text): text search is currently switched off

Really tensed about it. Not working good. Does sikuli works in ubuntu
using eclipse ?

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