FormControlvariable
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
await FormControl('Email').has({ description: 'Email for newsletters' });
await FormControl({ id: 'email-field', valid: true }).exists();
Filters
id: string – Filter by idvisible: boolean – Filter by visibility. Defaults totrue. SeeisVisible.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.