Overview
TheBigDecimalFieldElement class is a Playwright wrapper for the <vaadin-big-decimal-field> component. It provides methods to interact with high-precision decimal input fields.
Component Tag
<vaadin-big-decimal-field>
Extends
VaadinElement
Implements
HasValidationPropertiesElement- Validation state and error messagesHasInputFieldElement- Value, label, helper text, and stylingHasPrefixElement- Prefix slot contentHasSuffixElement- Suffix slot contentHasClearButtonElement- Clear button functionalityHasPlaceholderElement- Placeholder textHasAllowedCharPatternElement- Character input restrictionsHasThemeElement- Theme variantsFocusableElement- Focus and blur operationsHasAriaLabelElement- ARIA label supportHasEnabledElement- Enabled/disabled stateHasTooltipElement- Tooltip text
Constructor
The Playwright locator for the
<vaadin-big-decimal-field> elementFactory Methods
getByLabel (Page)
Get a big decimal field by its accessible label. Uses ARIA roletextbox.
The Playwright page
The accessible label of the field
Example
getByLabel (Locator)
Get a big decimal field by its accessible label within a scope.The locator to search within
The accessible label of the field
Inherited Methods
FromHasValueElement:
getValue()- Get current valuesetValue(String value)- Set field valueclear()- Clear the valueassertValue(String value)- Assert value matchesgetInputLocator()- Get input element locator
HasValidationPropertiesElement:
assertValid()- Assert field is validassertInvalid()- Assert field is invalidassertErrorMessage(String message)- Assert error message textgetErrorMessageLocator()- Get error message locator
HasClearButtonElement:
clickClearButton()- Click the clear buttonisClearButtonVisible()- Check if clear button is visibleassertClearButtonVisible()- Assert clear button is visibleassertClearButtonNotVisible()- Assert clear button is not visible
HasPlaceholderElement:
getPlaceholder()- Get placeholder textsetPlaceholder(String placeholder)- Set placeholder textassertPlaceholder(String placeholder)- Assert placeholder matches
FocusableElement:
focus()- Focus the fieldblur()- Blur the fieldgetTabIndex()- Get tab indexassertIsFocused()- Assert field has focusassertIsNotFocused()- Assert field does not have focus
HasLabelElement:
getLabel()- Get label textassertLabel(String label)- Assert label textgetLabelLocator()- Get label locator
HasHelperElement:
getHelperText()- Get helper textassertHelperHasText(String text)- Assert helper textgetHelperLocator()- Get helper locator
HasPrefixElement:
getPrefixText()- Get prefix textassertPrefixHasText(String text)- Assert prefix textgetPrefixLocator()- Get prefix locator
HasSuffixElement:
getSuffixText()- Get suffix textassertSuffixHasText(String text)- Assert suffix textgetSuffixLocator()- Get suffix locator