Skip to main content

SplitLayoutElement

Playwright element wrapper for <vaadin-split-layout> providing helpers to read/change orientation, access primary/secondary content, and control splitter position.

Component Tag

vaadin-split-layout

Implements

  • HasStyleElement - CSS class and style management
  • HasThemeElement - Theme variant support

Constructor

Locator
required
Playwright locator for the <vaadin-split-layout> element

Static Factory Methods

get

Get the first split layout on the page.
Page
Playwright page

Content Locators

getPrimaryLocator

Locator for the primary content (slot="primary").

getSecondaryLocator

Locator for the secondary content (slot="secondary").

getHandleLocator

Locator for the splitter handle (shadow part="handle").

Methods

dragSplitterBy

Drag the splitter by a delta offset in pixels. Positive X moves right, positive Y moves down.
double
Horizontal offset in pixels (positive = right)
double
Vertical offset in pixels (positive = down)

Assertion Methods

assertVertical

Assert that the layout orientation is vertical.

assertHorizontal

Assert that the layout orientation is horizontal.

Usage Examples

Access Primary and Secondary Content

Verify Orientation

Drag the Splitter

Access Splitter Handle

Work with Nested Components