Const
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(); Copy
await Tab('Preview').click();await Tab({ id: 'preview-tab' }).exists();
id
visible
true
disabled
false
active
click()
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.
Example
Filters
id
: string – Filter by idvisible
: boolean – Filter by visibility. Defaults totrue
. See isVisible.disabled
: boolean – Filter by whether the tab is disabled. Defaults tofalse
.active
: boolean – Filter by whether the tab is active.Actions
click()
: Interaction – Click on the tab