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