Not able to integrate sikuli with webdriver

541 views
Skip to first unread message

pratika

unread,
Jan 29, 2013, 6:43:12 AM1/29/13
to webd...@googlegroups.com
Hi all

I am not able to integrate sikuli with web driver using following code and getting exception 'java.lang.UnsatisfiedLinkError: '.


import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;

public class Sikuli_sample {

@Test
public void functionName() throws FindFailed {
   
// Create a new instance of the Firefox driver
WebDriver driver = new FirefoxDriver();

// And now use this to visit Google 
driver.get("http://www.google.com");

//Create and initialize an instance of Screen object    
Screen screen = new Screen();

    
    
screen.wait("img/GoogleSearch.png");
screen.click("img/GoogleSearch.png",0);

  }
}


Can any one help me out where I am wrong in the code.............
Please do the needfull





Simon Stewart

unread,
Jan 29, 2013, 6:55:16 AM1/29/13
to webd...@googlegroups.com
Generally an UnsatisfiedLinkError is to do with a required native DLL not being present on the LD_LIBRARY_PATH. Without a stack trace I'd hazard that this is almost definitely a sikuli problem.

Simon






--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

pratika

unread,
Jan 31, 2013, 5:02:18 AM1/31/13
to webd...@googlegroups.com
Yeah but what kind of error it could be .........And can you explain something about SikulifirefoxDriver

I read following article........
 http://code.google.com/p/sikuli-api/wiki/SikuliWebDriver  but have no clue how to use it..........Do the needful  

Simon Stewart

unread,
Jan 31, 2013, 5:28:57 AM1/31/13
to webd...@googlegroups.com
This is really a question for the authors of "sikuli-api" project rather than this list. I'd suggest asking there.

As an aside, I'm surprised that they didn't implement the findImageElement as a By subclass. But that's neither here nor there.

Simon
Reply all
Reply to author
Forward
0 new messages