sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23642
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 have set the path exactly you are telling . tcw is name of my project suppose there is folder named images.sikulii where my .png images are kept , then lib folder where sikuli-java.jar is kept and inside lib I have libs folder like lib/libs where .so files are there. then there is build.xml
where sikuli-java.jar path is set like
<pathelement path="${build.dir}/classes" />
and jar and .so file path are set as
<fileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${lib.dir}/libs" includes="*.so"/>
then my .java fille is kept in tcw/src/com/selenium/thecharmTest.java
public void testUntitled() throws Exception {
driver.get("www.thecharmworks.com");
driver.findElement(By.xpath("html/body/div[4]/footer/div[1]/div/div[2]/a/img")).click();
Debug.setDebugLevel(3);
Settings.OcrTextRead =true;
// s.type(Key.DOWN, Key.DOWN, Key.DOWN);
s.setAutoWaitTimeout(2);
s.exists("Start Building Now");
s.waitVanish(2);
s.doubleClick("images.sikuli/1390382312030.png");
System.out.println("++++++"+ s.doubleClick("/1390382312030.png"));
s.wait(2);
s.doubleClick("1390382392318.png");
s.wait(2);
}
But still I am getting <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:48)
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/tcw-ofbiz/hot-deploy/tcw/lib/
[debug] ResourceLoaderBasic: checkLibsDir: /home/paridhi/projects/tcw-ofbiz/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/tcw-ofbiz/hot-deploy/tcw/lib/libs
[debug] ResourceLoaderBasic: loadLib: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Found: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Now loaded: VisionProxy
[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 2 to vanish
[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] Region.waitVanish: seems that imagefile could not be found on disk
[debug] waiting for /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] /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 or images cannot be found.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.