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> elementStatic 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
TabElement for the matching tab.
getSelectedTab
Get the currently selected tab.TabElement that is currently selected.
selectTab
Select a tab by label text.String
Tab label text
getContentLocator
Locator for the currently visible content panel.Assertion Methods
assertTabsCount
Assert the number of tabs.int
Expected tab count