Tabs: any = TabsInteractor

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

The tabs is located by the aria-label attribute.

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