sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23992
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: Open => Answered
RaiMan proposed the following answer:
This seems to be the standard GUI-not-ready-for-the-next-action problem:
the click, that is done within type(), to move the caret to the field, comes too fast for the second type, so it is simply ignored.
try this:
have a
Screen s = new Screen();
somewhere at the beginning, so you have a global Region object to use
for unspecific methods.
and then try this:
wholeApp.type("textfield_1.png", "text_1");
s.wait(0.5); // wait 0.5 seconds
wholeApp.type("textfield_2.png", "text_2");
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.