assertValue

suspend fun assertValue(tag: String, expected: String)

Asserts that an input element matching string tag has text value expected.

Semantic alias for assertText intended for form field validation.

Example Usage

assertValue("email_input", "alice@example.com")

Parameters

tag

The testTag string or visible text of the input field.

expected

The expected input value.


suspend fun assertValue(selector: Selector, expected: String)

Asserts that an input element matching selector has text value expected.

Semantic alias for assertText using explicit selectors.

Example Usage

assertValue(tag("phone_input"), "+15550199")

Parameters

selector

Explicit selector targeting the input element.

expected

The expected input value.