← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #163224]: Finish entering text (type()) before finding image

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
@ Calle
But Willie might be right: since paste() internally simply simulates a ctrl-v, there might be situations, where simulating key strokes (what type() does) is the only chance, since a ctrl-v might not be accepted by the GUI.

@Willie
So it is not a "bad" character problem.
Then it might be that type() fires too fast.

instead of:
txt = "some text\n"
type(txt)

try:
for c in txt:
    type(c)
    wait(t)

and try with different t values (starting with 0.1)

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