sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23993
Re: [Question #243473]: Sikuli enters text in wrong field although correct match is present
Question #243473 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243473
Status: Answered => Open
Christina Zrelski is still having a problem:
Thanks for the quick answer.
I tried that now, but - sadly - it didn't solve my problem, no matter how long I wait.
The problem somehow is that the focus of the cursor remains at the first textfield the whole time.
I just changed the code to:
wholeApp.type("textfield_1.png", "text_1");
wholeApp.type(Key.TAB)
wholeApp.type("textfield_2.png", "text_2");
and now it works perfectly fine.
Is there any other solution to force a focus change? Because hard-coding
the press of the TAB-key isn't really the best approach for creating
long-living robust GUI-tests (since a future change in the GUI, i.e.
adding another component in between the existing ones might break the
testcase again).
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.