← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #664839]: Issue with wait() and type()

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Very hard to get behind the reason in such situations.
BTW: type() and write() internally are the same: using the features of Java Robot

If the type() is reported, but not actually done, then there are 2 possible reasons:
 - 1. the target app is blocking Java Robot actions (not the case here)
 - 2. the target app does not have focus in the way you expect it to have

Since SikuliX does not have a feature to check, wether the type was
really done, the workflow must either secure beforehand, that the
prerequisites for a definitive success are given (such as focus ready)
or check afterwards with other means, that the type() was successful (if
not, take corrective actions such as repeating the actions).

If in your case, the fallback solution (using arrow keys) works better:
congratulations ;-) be happy.

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