Skip to main content

ProgressBarElement

Playwright element wrapper for <vaadin-progress-bar> supporting value/min/max setters and assertions and indeterminate state.

Component Tag

vaadin-progress-bar

Implements

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

Constructor

Locator
required
Playwright locator for the <vaadin-progress-bar> element

Property Methods

getValue

Current numeric value parsed from aria-valuenow.
Returns the current progress value.

setValue

Set the progress bar value.
double
Progress value to set

getMin

Get the minimum value.
Returns the min value, or null if not set.

setMin

Set the minimum value.
double
Minimum value to set

getMax

Get the maximum value.
Returns the max value, or null if not set.

setMax

Set the maximum value.
double
Maximum value to set

isIndeterminate

Whether the bar is indeterminate.

setIndeterminate

Set the indeterminate state.
boolean
Whether to show indeterminate state

Assertion Methods

assertValue

Assert that the numeric value matches.
Double
Expected value, or null to assert undefined

assertMin

Assert that min matches the expected value.
double
Expected minimum value

assertMax

Assert that max matches the expected value.
double
Expected maximum value

assertIndeterminate

Assert indeterminate state.

assertNotIndeterminate

Assert not indeterminate.

Usage Examples

Basic Progress Bar

Indeterminate Progress Bar

Progress Bar with Min/Max

Update Progress Value

Set Min and Max

Toggle Indeterminate State

Check Progress State

Progress Bar with Theme