Const
Call this InteractorConstructor to initialize a form control Interactor. The form control interactor can be used to assert on form fields state.
The form control is located by the text of its label.
await FormControl('Email').has({ description: 'Email for newsletters' });await FormControl({ id: 'email-field', valid: true }).exists(); Copy
await FormControl('Email').has({ description: 'Email for newsletters' });await FormControl({ id: 'email-field', valid: true }).exists();
id
visible
true
valid
description
disabled
false
Call this InteractorConstructor to initialize a form control Interactor. The form control interactor can be used to assert on form fields state.
The form control is located by the text of its label.
Example
Filters
id
: string – Filter by idvisible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.valid
: boolean – Filter by whether the form field is valid.description
: string – Filter by the form's field description text.disabled
: boolean – Filter by whether the form field is disabled. Defaults tofalse
.