How can I select all in text field (Mac OS X)

Asked by Andrey Brindeyev

I've identified a required field, clicked at the right and now I need to send Cmd-A to select everything in that field and than send Cmd-C to copy this to clipboard.

I've tried to use type("A" + Key.CMD) but this doesn't work (it adds capital A the cursor position).

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

sometimes a look at the docs helps ;-)

type('a', KeyModifier.CMD)

generally use lowercase letters for that, otherwise it is shift-cmd-a, which might be something else.

Revision history for this message
Andrey Brindeyev (abrindeyev) said :
#2

Thanks RaiMan, that solved my question.