dmark1021 / sikuli-api

Automatically exported from code.google.com/p/sikuli-api
0 stars 0 forks source link

Sikuli Java API: does not run on CentOS #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. when I want run my test
2.
3.

What is the expected output? What do you see instead?
I have got error:

tmp/javacpp8897434569464444/libjniopencv_core.so: libopencv_core.so.2.4: cannot 
open shared object file: No such file or directory

What version of the product are you using? On what operating system?
sikuli-api: 1.0.2, operating system: CentOS 5.5

Please provide any additional information below.
my pom.xml file shortened:
<repositories>
        <repository>
            <id>javacpp</id>
            <name>JavaCPP</name>
            <url>http://maven2.javacpp.googlecode.com/git/</url>
        </repository>
        <repository>
            <id>javacv</id>
            <name>JavaCV</name>
            <url>http://maven2.javacv.googlecode.com/git/</url>
      </repository>
</repositories>
<dependency>
        <groupId>org.sikuli</groupId>
        <artifactId>sikuli-api</artifactId>
        <version>1.0.2</version>
</dependency>
<dependency>
        <groupId>org.sikuli</groupId>
        <artifactId>sikuli-webdriver</artifactId>
        <version>1.0.1</version>
</dependency>
<dependency>
    <groupId>com.googlecode.javacpp</groupId>
    <artifactId>javacpp</artifactId>
    <version>${javacpp.version}</version>
</dependency>
<dependency>
    <groupId>com.googlecode.javacv</groupId>
    <artifactId>javacv</artifactId>
    <version>${javacv.version}</version>
</dependency>

my test:
SikuliFirefoxDriver driver = new SikuliFirefoxDriver();         
driver.get("some url");
Target imageTarget = new ImageTarget(new URL("some url"));
ScreenRegion screenRegion = new DesktopScreenRegion();
ScreenRegion s = screenRegion.find(imageTarget);
Mouse mouse = new DesktopMouse();
mouse.click(s.getRelativeScreenLocation(10, 10));
mouse.click(s.getRelativeScreenLocation(10, 30));
driver.close();

Original issue reported on code.google.com by RomanMal...@gmail.com on 16 Jan 2013 at 3:06

GoogleCodeExporter commented 9 years ago
I have the same issue on Ubuntu.

Original comment by com...@gmail.com on 21 Jan 2013 at 4:10

GoogleCodeExporter commented 9 years ago
The WebDriver implementation for Firefox (SikuliFirefoxDriver) is browser 
version dependent. Currently it is out of date, so SikuliFirefoxDriver is 
useless. It is a ~wrapper for FirefoxWebDriver what is part of Selenium API.

(It is a very bad decision to include another API in Sikuli API as sikuli is 
updated rarely. Selenium is updated more frequently as new browser versions 
become available.)

If you want to write programs to do stuff with Firefox, i recommend using the 
Selenium RC.

http://seleniumhq.org/docs/03_webdriver.jsp#introducing-the-selenium-webdriver-a
pi-by-example

Original comment by miglecz on 24 Jan 2013 at 12:00

GoogleCodeExporter commented 9 years ago

Original comment by doubles...@gmail.com on 13 Jun 2013 at 8:04