Skip to main content

TabSheetElement

Playwright element wrapper for <vaadin-tabsheet> providing helpers to access/select tabs and view current content panel.

Component Tag

vaadin-tabsheet

Constructor

Locator
required
Playwright locator for the <vaadin-tabsheet> element

Static Factory Methods

get

Get the first tabsheet instance on the page.
Page
Playwright page

Methods

getTab

Get a tab by its label text.
String
Tab label text
Returns a TabElement for the matching tab.

getSelectedTab

Get the currently selected tab.
Returns the TabElement that is currently selected.

selectTab

Select a tab by label text.
String
Tab label text

getContentLocator

Locator for the currently visible content panel.
Returns a locator for the tab panel that is currently visible (not hidden).

Assertion Methods

assertTabsCount

Assert the number of tabs.
int
Expected tab count

Usage Examples

Basic Tab Operations

Access Tab Content

Work with Individual Tabs

Verify Tab Selection