sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51557
[Question #680659]: I am not able to find the Text on screen
New question #680659 on Sikuli:
https://answers.launchpad.net/sikuli/+question/680659
I am Using Java API to develop sikuli test when i try to find a
text on screen it throws an error .
Code:
private static Screen screen = new Screen();
public clickLogIn() throws FindFailed, InterruptedException {
Settings.OcrTextSearch=true;
Settings.OcrTextRead = true
String text ="204";
try {
screen.findText(text);
} catch (FindFailed findFailed) {
System.out.println("Failed");
findFailed.printStackTrace();
}
}
Console Error:
[error] TextRecognizer not working: tessdata stuff not available at:
C:\Users\Abi\AppData\Roaming\Sikulix\SikulixTesseract\tessdata
Failed
FindFailed: 204 as text
Line 2759, in file Region.java
at org.sikuli.script.Region.wait(Region.java:2759)
at org.sikuli.script.Region.findText(Region.java:2836)
at org.sikuli.script.Region.findText(Region.java:2847)
PORM.XML
<repositories>
<repository>
<!-- OSSRH: com.sikulix -->
<name>com.sikulix</name>
<id>com.sikulix</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<!--layout>default</layout-->
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<!-- OSSRH: com.sikulix -->
<name>jxgrabkey</name>
<id>jxgrabkey</id>
<url>https://labs.consol.de/maven/repository/</url>
<!--layout>default</layout-->
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
<!-- <dependencyManagement> <dependencies> <dependency> <groupId>org.sikuli</groupId>
<artifactId>sikuli-script</artifactId> <version>X-1.0rc3</version> </dependency>
</dependencies> </dependencyManagement> -->
<dependencies>
<!-- <dependency> <groupId>org.sikuli</groupId> <artifactId>sikuli-script</artifactId>
</dependency> -->
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>${xmlbeans.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>${poi-ooxml-schemas.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>${poi-ooxml.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${poi.version}</version>
</dependency>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixapi</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.sikulix</groupId>
<artifactId>sikulixlibswin</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
</dependency>
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.41.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.9</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>com.github.vidstige</groupId>
<artifactId>jadb</artifactId>
<version>-v1.0-g94ebf38-23</version>
</dependency>
</dependencies>
Please help to resolve this error. Thanks in advance.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.