sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37587
Re: [Question #290565]: Mouse calls seem to cause hang
Question #290565 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/290565
Status: Needs information => Open
Spencer Keller gave more information on the question:
Hi,
I'm using the sdk jar that came with the Sikuli 1.1.0 "SikuliX" download
from: https://launchpad.net/sikuli/sikulix/1.1.0. And I'm developing on
Windows 7. Should I be using a different jar? Perhaps the one from the
code.google.com link you provided?
So what I'm doing is writing Java 1.7 test code that makes calls to the
SikuliX SDK jar to interact with the application under test. There is
no Python or any other language being used. Here is a little Java code
snippet:
// This opens the list of items in a combo box.
Pattern header = new Pattern(_EDIT_ACCOUNT_DIALOG);
header.similar(0.80f);
Region tmp = exists(header).grow(0, 0, 0, 350);
tmp.find(_ACTIVE_COMBO_BOX).click();
// This selects one of the items in the combo box.
Mouse.move(0, 50);
Mouse.down(Button.LEFT);
Mouse.up();
// This code then clicks the dialogs "Submit" button.
Pattern header = new Pattern(_EDIT_ACCOUNT_DIALOG);
header.similar(0.80f);
Region tmp = exists(header).grow(0, 0, 0, 350);
tmp.click(_SUBMIT_BUTTON); <<<---- This is where the problem occurs. The click NEVER returns.
If I remove the Mouse calls and use a Match object with an click offset
(setTargetOffset) if works fine. The Match work-a-round is working just
fine so there is no urgency on my part. I hope this is a bit clearer.
Thanks,
Spence
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.