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

Hi,

I am evaluating tools for testing a WPF based app. I am currently trying Sikuli 
with the Java API. When I try to click on an object from Java code, the mouse 
cursor goes to the object and the object is highlighted, however the click 
action does not work, because the expected menu does not open. The click() 
method returns status 1 though.
If I am doing a click from Sikuli IDE, it works fine.
I tried 1.0.1 version and also the nightly build. Here's my code:

@Test
        public void testLogin() {
                Screen s = new Screen();
                try {
                        s.wait(Constants.overflowMenu);
                        System.out.println(s.click(Constants.overflowMenu));
                        s.wait(Constants.signInMenuOption, 5);
                } catch (FindFailed e) {
                        Assert.fail(e.getMessage());
                }
        }

What am I doing wrong?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to