简体   繁体   中英

How to automate flash with sikuli with selenium webdriver java

I am using flash website , that flash site contents text box and i want to enter value
in that text box. I am using sikuli-script.jar with selenium webdriver with java.

Here is my code:

public void AISTest2()
    {
     WebDriver driver = new FirefoxDriver();
    driver.get("url of site");
    Screen s = new Screen();
    try {
        Thread.sleep(20000);            
        s.click(s.find("c:\\user.png"));
        s.type("mytextfieldvalue");
    } catch (FindFailed | InterruptedException e) {
        e.printStackTrace();
    }
    }

when i execute this code following error comes:

Exception in thread "main" java.lang.UnsatisfiedLinkError: 

 C:\Users\laxman\AppData\Local\Temp\tmplib\VisionProxy.dll: 
Can't find dependent libraries

Did you add the path for sikuli libs folder to your environment PATH variable? If you are using a version earlier than 1.0.1 then you need to add SIKULI_HOME as well to the environmental variables. See this link - https://answers.launchpad.net/sikuli/+question/235169

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM