Codemo Playground
  • Getting Started
  • General UI
    • Button
    • Input
    • Radio Buttons
    • Checkboxes
    • Select Dropdown
    • Date
  • Dynamic UI
  • Browser Interactions
  • Storage & State
  • API
  • Beehive
Back to Home
General UI

Input

Example codeGuide
Practice entering strings, clearing values, and validating input constraints.
Standard Typing
Verify the input field accepts a standard alphanumeric string and updates its value correctly.

Current value: (empty)

Clear Field
Verify that clearing the input via automation removes all characters and returns the field to an empty state.

Current value: Could be cleared

Disabled State
Verify the field is non-interactive, does not accept focus or input, and visually indicates its disabled state.

Current value: Locked Value

Read-Only State
Verify the field allows focus/selection but prevents any modification of the pre-existing text.

Current value: Read-only Value

Character Limit
Verify the input truncates text or prevents further entry once the maxlength limit is reached.

0/10 characters

Numerical Only
Verify the field rejects non-numeric characters and only registers valid digits in the final value.

Current value: (empty)

Placeholder Text
Verify the placeholder text is visible when the field is empty and disappears immediately upon typing.

Placeholder visible: Yes

Enter Key Action
Verify that pressing the Enter key while the input is focused triggers the associated primary action or form submission.

Submitted values: 0

Required Validation
Verify the field triggers a validation error or 'required' state when a form submission is attempted while empty.
This field cannot be empty

Status: Not validated

Password Masking
Verify the input field masks characters for security and is identified by the password type attribute.
Characters should be masked

Current value: (empty)

Leading/Trailing Spaces
Verify the field correctly handles or trims whitespace at the beginning and end of the input string.

Raw value: (empty)

Trimmed value: (empty)