Use sikuli in Selenium Webdriver

Asked by Rafael

Hi,

Currently I'm used selenium webdriver with Java and in the my web application I have a screen desktop. For example, when I click on a button, automatically opens a desktop window to upload image.

so far, I just added the JAR file in the project http://screencast.com/t/BB5Djr0fE , what should be the next step?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

If you are talking about the integration of Sikuli:
put a reference to sikuli-java.jar (setup option 4) in you project and use it ;-)

Revision history for this message
paridhi mittal (paridhi-mittal) said :
#2

Hello Rafeal

Why are you using sikuli webdriver .jar ??
I mean we can use withh sikuli -script.jar aswell ??
can you give me the answer and the link whic you are following to set up sikuli with selnium webdriver java, because i am too working on it.

Thanks , Regards
Paridhi Mittal

Revision history for this message
RaiMan (raimund-hocke) said :
#4
Revision history for this message
paridhi mittal (paridhi-mittal) said :
#5

I went through the link and which jar we have to download from here https://launchpad.net/raiman/+download
for running sikuli with ant in eclipse ubuntu..???

Revision history for this message
paridhi mittal (paridhi-mittal) said :
#6

Ok RaiMan can you tell me all the configuration and jars we need to run sikuli on my system??? ..I can let you know about my system configurations and the way i am proceeding
Ubuntu 13.04
eclipse Helios
selenium webdriver 2.37
sikuli script from this link https://www.assembla.com/code/plus/subversion/nodes/trunk/PlusLib/tools/Sikuli/sikuli-script.jar?rev=1952
sikuli supplement https://launchpad.net/sikuli/+download .........8th from the top( Sikuli-X-1.0rc3 (r905)-linux-x86_64.zip (md5, sig)

sikuli script I am putting in the lib folder of the project and for sikuli supplement I have made a folder named sikuli , extract the zip file and copied it there.
Then in my build I am uisng this target :

      <target name="runTest" depends="compile">
    <junit printsummary="yes" haltonfailure="no">
    <classpath>
    <pathelement location = "lib/sikuli-script.jar"/>
      <pathelement path="${build.dir}/classes" />
       <pathelement path="seleniumClasses"/>
    </classpath>
        <formatter type="xml"/>
       <sysproperty key="java.library.path" value="sikuli"/>
     <batchtest fork="yes" todir="reports/xml">
     <fileset dir="src">
      <include name="**/*Test*.java"/>
     </fileset>
    </batchtest>
      </junit>
        <junitreport todir="reports">
           <fileset dir="reports/xml">
     <include name="TEST-*.xml"/>
    </fileset>
    <report format="frames" todir="reports/html" />
      </junitreport>
       </target>

And afterdoing all this i am getting this error :
<error message="org.sikuli.script.natives.VisionProxyJNI.new_FindInput__SWIG_0()J" type="java.lang.UnsatisfiedLinkError">java.lang.UnsatisfiedLinkError: org.sikuli.script.natives.VisionProxyJNI.new_FindInput__SWIG_0()J

Now can you help me where am I getting wrong.

Regards
Paridhi Mittal

Revision history for this message
RaiMan (raimund-hocke) said :
#7

closing this question, because it is double with
https://answers.launchpad.net/sikuli/+question/241932