I.type / I.press

Send a key or a string of keys to the element in focus.

Note:

This needs to be used with other commands to select an element on the page to focus on first, such as I.click or I.fill.

Usage

I.type(key)
I.press(key)
Parameter Type Remarks
key string Key to press

Example

I.click("#input-message")
I.type("Hello") 

This sets the focus on the #input-message element, and then types "Hello" into it.