← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689756]: Focusing a field of a client application

 

Question #689756 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/689756

    Status: Open => Answered

RaiMan proposed the following answer:
possible problems:

--- App.focus() does not work
Try another shorter (one word) window title text and check wether the app comes to front

--- click after focus too fast
add a wait(3) before the click (if it now works reduce the wait time accordingly)
check wether the write cursor in the field is activated and the field id focused

type also might need a short wait before (give the GUI time to react)

You should think of using click(image), which in the standard waits 3
secs for the image to come up, instead of using coordinates (which might
vary, if the window is placed somewhere else).

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.