Skip to content

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

ParameterTypeDescription
elementstringText input element to target — by visible text, CSS or XPath selector
valuestringValue 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.