Variable FormControlConst

FormControl: any = FormControlInteractor

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();
  • id: string – Filter by id
  • visible: boolean – Filter by visibility. Defaults to true. 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 to false.