Tab: any = TabInteractor

Call this InteractorConstructor to initialize a tab Interactor. The tab interactor can be used to interact with tabs on the page and to assert on their state.

The tab is located by the text of its label or by text content.

await Tab('Preview').click();
await Tab({ id: 'preview-tab' }).exists();
  • id: string – Filter by id
  • visible: boolean – Filter by visibility. Defaults to true. See isVisible.
  • disabled: boolean – Filter by whether the tab is disabled. Defaults to false.
  • active: boolean – Filter by whether the tab is active.
  • click(): Interaction – Click on the tab