• function

type

 

Types sequence of [Syn.key key actions]. Each character is typed, one at a type. Multi-character keys like 'left' should be enclosed in square brackents.

The following types 'JavaScript MVC' then deletes the space.

Syn.type('JavaScript MVC[left][left][left]\b','name')

Type is able to handle (and move with) tabs (\t).
The following simulates tabing and entering values in a form and eventually submitting the form.

Syn.type("Justin\tMeyer\t27\tjustinbmeyer@gmail.com\r")