Appearance
I.filled()
Asserts that a text input field is filled with the specified value.
I.filled() checks the current value of the input field and compares it against the expected value.
If the value does not match the expected value, the command fails.
INFO
The element targeting behavior is the same as I.fill(). Refer to the I.fill() reference for details.
Usage
js
I.filled(field: string, value: string)Parameters
| Parameter | Type | Description |
|---|---|---|
element | string | Text input element to target — by visible text, CSS or XPath selector |
value | string | Value that the field is expected to have |
Examples
Assert a field value
js
I.filled("Email", "[email protected]")This validates that the Email input field is filled with the specified value.