Skip to content

Clear Text Field: CLEAR

The Clear Text Field action removes or clears the existing value in an input field, such as a text box. This action is helpful when resetting a field before entering a new value, ensuring the field is empty for the next step.

Example: Let’s clear the existing value in a username field on a login form.

Steps to configure:

  1. Select the Clear Text Field from the Action drop-down.
  2. In the Screen Name field, enter the screen where the element is located (e.g., LoginForm).
  3. In the Element Key field, specify the locator for the element to be cleared (e.g., usernameField).
  4. Leave the Parameters section blank.
  5. Click Save.

Note: While the steps for adding an Action are identical in both views, the display of the steps changes:

scrn-clear-text-field-tabular-view
Tabular View
scrn-clear-text-field-card-view
Card View

Note: Ensure that the Screen Name and Element Key are pre-defined before using this action.

Expected Output: The Clear Text Field action will remove any text or value from the specified field, leaving it blank and ready for new input.

Back To Top