← Back to team overview

sikuli-driver team mailing list archive

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

RaiMan proposed the following answer:
ok, that's odd and must have to do with some behavior of your app.

test this:
Settings.Highlight=true;
wholeApp.type("textfield_1.png", "text_1");
//wholeApp.type(Key.TAB);
//wholeApp.type("textfield_2.png", "text_2");
wholeApp.type("textfield_2.png");
wholeApp.hover() // should move the mouse to field 2
s.wait(3)
wholeApp.click() // should click here and move the caret to fields
s.wait(3)
s.type("text_2");

the wait()'s are only to slow down for watching

Another option you have:
wholeApp.type("textfield_1.png", "text_1\n");
wholeApp.type("textfield_2.png", "text_2\n");

might be an ENTER is needed, to un-focus the textfield

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