version: 5.7.7
session: 682f5c4c811bd5a322c0e5c1
steps:
  - prompt: enter standard_user within the username field
    commands:
      - command: focus-application
        name: Google Chrome
      - command: hover-text
        text: Username
        description: input field for username
        action: click
      - command: type
        text: standard_user
  - prompt: assert that standard_user shows in the username field
    commands:
      - command: assert
        expect: the username field contains "standard_user"
  - prompt: click on sign in
    commands:
      - command: hover-text
        text: Sign in
        description: black button below the password field
        action: click
  - prompt: assert that "please fill out this field" shows in the password field
    commands:
      - command: focus-application
        name: Google Chrome
      - command: assert
        expect: Please fill out this field is visible near the password field

Description

The type command is used to simulate typing a string using keyboard emulation. This is useful for entering text into input fields or performing text-based interactions.

Arguments

ArgumentTypeDescription
textstringThe text string to type.

Example usage

command: type
text: Hello World

Protips

  • Use this command to input text into fields, such as search bars or forms.
  • Ensure the target application or input field is in focus before using the type command to avoid unexpected behavior.

Gotchas

  • If the input field isn’t active or in focus, the text may not be typed correctly.
  • Special characters in the text string may require additional handling depending on the application.

Notes

  • The type command is ideal for automating text input in tests.
  • This command supports cross-platform compatibility for consistent behavior across operating systems.