← Back to team overview

sikuli-driver team mailing list archive

[Question #668479]: screen works in IDE run but not in .jar output

 

New question #668479 on Sikuli:
https://answers.launchpad.net/sikuli/+question/668479

Example code:

    public void testClickAdd(){
        try {
            Screen screen = new Screen();
            Pattern pattern = new Pattern("pics/addToCart.png");

            screen.click(pattern);

        }catch (Exception e){

        }
    }

This code work perfectly when I use IDE to run it. After I output my project as .jar. Run the same code, the click function does not move at all.

Thanks!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.