# Type

The Type command is used to enter text into an input field. Drizz identifies the appropriate input target using visible labels, surrounding context or field associations. Manual steps such as explicitly clearing the field or tapping to activate the input are not required, as Drizz intelligently handles field focus and text replacement to ensure reliable and consistent input behaviour.

## 1. Basic Type

### **1.1 Typing  directly into a clearly identifiable field**

Used when the input field is singular or obviously referenced.

Examples

* Type "<john@example.com>" in username field
* Type "password123" in password field

Drizz automatically focuses on the nearest text field as intended.

## 2. Type With Explicit Field Context

When multiple input fields exist, always specify the field label to avoid ambiguity.

### 2.1 Single identifiable label

Type "John" into the name field

Type "9876543210" into the phone number field

### 2.2 Placeholder text visible

Type <johndoe@example.com> into Email&#x20;

Type pass\@123 into Password

## 3. Multiple Input Fields With Similar Purpose

Use more context when identical or similar fields appear on the same screen.

#### 3.1 Distinguishing by section

Type "John" in personal details section

Type "John" in shipping details section

#### 3.2 Distinguishing by position

Type "123" in the first input field

Type "456" in the second input field

#### 3.3 Distinguishing by neighbouring element

Type "42" next to "Age"

Type "500" near "Quantity"

## 4. Type with Dynamic or Auto-Filled / Pre-Populated / Suggestion Fields

Drizz intelligently detects existing or auto-populated values within input fields and reliably clears them before entering the new specified value. This ensures deterministic input behavior, prevents residual text conflicts, and maintains consistency across dynamic and suggestion-driven fields.

## 5. Edge Cases

### 5.1 Input field not visible

Drizz returns:

Input field not found on screen

### &#x20;5.2. Keyboard handling

Active keyboard enabling or displaying the on-screen keyboard is not required, unless the subsequent action explicitly involves a keyboard interaction. Drizz identifies the the next action after type and handles keyboard accordingly.

Example:

Type Cake in  search bar

Tap on the search icon on the keyboard

##


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.drizz.dev/commands-reference/action-commands/type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
