sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30141
Re: [Question #260947]: Click on element does not work with Java API but it works from IDE - WPF app
Question #260947 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/260947
Status: Open => Needs information
RaiMan requested more information:
What Windows?
You should use 1.1.0 (sikulixapi.jar).
optimized (but nothing to do with your problem):
s.wait(Constants.overflowMenu);
s.click(); // clicks the last match in s
or even
s.click(s.wait(Constants.overflowMenu));
- both versions avoid another search for the already found Constants.overflowMenu
- if not found you get an exception anyways
- click() does not "know" wether it really clicked (so checking the return is useless)
if you want to see more debug information, just say
org.sikuli.basics.Debug.setDebugLevel(3)
before the critical part and set it to 0 afterwards.
or you might use the Java command line option
-Dsikuli.Debug=3
to generally switch verbose debug output on.
you say:
If I am doing a click from Sikuli IDE, it works fine.
is it with exactly the same images?
... and in Java, does click generally not work or only in this special
case?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.