Simulates typing text into the currently focused element or the page. This is like multiple key presses for each character in the text. Example: type(text: "Hello, world!") Returns true if the text was successfully typed.

Definition

type(
  text: String!
  options: TypeOptions
): Boolean!

Arguments

text

String! The text to type.

options

TypeOptions Options for typing, such as inter-character delay.

Returns

Boolean! The Boolean scalar type represents true or false.