← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #296140]: OSX: text field contains "XXXXXXXX@XXXXX": type("a", Key.CMD) does not select all

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
my test on OSX 10.11 with SikuliX 1.1.1: no problem

- having XXXXXXXX@XXXXX in a textfield on a GitHub webpage

this works:
img = Pattern("img.png").targetOffset(156,0)
switchApp("safari")
click(img)
type("a", Key.CMD)

where img.png is some symbol left of the field. The click is after the
3rd X.

You might try to add a short wait() after the click:
r.click();
r.wait(0.5);
r.type('a',Key.CMD);

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