Package com.vaadin.flow.component.slider
Class DecimalRangeSliderLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<DecimalRangeSlider,DecimalRangeSliderLocator>
com.vaadin.flow.component.slider.DecimalRangeSliderLocator
- All Implemented Interfaces:
Clickable<DecimalRangeSlider>,HasLabelFilter<DecimalRangeSlider,,DecimalRangeSliderLocator> HasThemeFilter<DecimalRangeSlider,,DecimalRangeSliderLocator> HasValueFilter<DecimalRangeSlider,DecimalRangeSliderValue, DecimalRangeSliderLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class DecimalRangeSliderLocator
extends Locator<DecimalRangeSlider,DecimalRangeSliderLocator>
implements Clickable<DecimalRangeSlider>, HasLabelFilter<DecimalRangeSlider,DecimalRangeSliderLocator>, HasValueFilter<DecimalRangeSlider,DecimalRangeSliderValue,DecimalRangeSliderLocator>, HasThemeFilter<DecimalRangeSlider,DecimalRangeSliderLocator>
Generated locator for
DecimalRangeSlider, derived from
DecimalRangeSliderTester. Filter steps are inherited from
Locator; action methods delegate to a fresh tester
around the resolved component, so behavioral changes belong on the
tester, not here.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a locator that searches for aDecimalRangeSlider.DecimalRangeSliderLocator(DecimalRangeSlider component) Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup. -
Method Summary
Modifier and TypeMethodDescriptionvoidSimulates pressing the arrow key on the end thumb to decrease end by one step.voiddecrementEndBy(int steps) Simulates the user dragging the end thumb to decrease end by the given number of steps.voidSimulates pressing the arrow key on the start thumb to decrease start by one step.voiddecrementStartBy(int steps) Simulates the user dragging the start thumb to decrease start by the given number of steps.voidEnsures the component is in a usable state before interaction.Gets the component being tested.voidSimulates pressing the arrow key on the end thumb to increase end by one step.voidincrementEndBy(int steps) Simulates the user dragging the end thumb to increase end by the given number of steps.voidSimulates pressing the arrow key on the start thumb to increase start by one step.voidincrementStartBy(int steps) Simulates the user dragging the start thumb to increase start by the given number of steps.voidSimulates the user dragging only the end (max) thumb.voidSimulates the user dragging only the start (min) thumb.voidsetValue(DecimalRangeSliderValue value) Simulates the user dragging both thumbs to set the range value.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAttribute, withAttribute, withClassName, withCondition, withCondition, withId, withinSlot, withoutAttribute, withoutAttribute, withoutClassName, withTestIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.browserless.Clickable
click, click, click, middleClick, middleClick, rightClick, rightClickMethods inherited from interface com.vaadin.browserless.locator.HasLabelFilter
withLabel, withLabelContainingMethods inherited from interface com.vaadin.browserless.locator.HasThemeFilter
withoutTheme, withoutTheme, withTheme, withThemeMethods inherited from interface com.vaadin.browserless.locator.HasValueFilter
withValue
-
Constructor Details
-
DecimalRangeSliderLocator
public DecimalRangeSliderLocator()Creates a locator that searches for aDecimalRangeSlider. -
DecimalRangeSliderLocator
Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.- Parameters:
component- the component the locator resolves to
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<DecimalRangeSlider>- Returns:
- the component under test
-
ensureComponentIsUsable
public void ensureComponentIsUsable()Description copied from interface:ClickableEnsures the component is in a usable state before interaction.- Specified by:
ensureComponentIsUsablein interfaceClickable<DecimalRangeSlider>
-
setValue
Simulates the user dragging both thumbs to set the range value.Throws if the component is not usable, if start or end are outside the min/max range, or if start exceeds end. Javadoc copied from
NumberRangeSliderTester.setValue(com.vaadin.flow.component.slider.Range).- Parameters:
value- range value to set- Throws:
IllegalArgumentException- if the value is invalid
-
setStart
Simulates the user dragging only the start (min) thumb. Javadoc copied fromNumberRangeSliderTester.setStart(java.lang.Number).- Parameters:
start- new start value- Throws:
IllegalArgumentException- if start is outside min/max or exceeds current end
-
setEnd
Simulates the user dragging only the end (max) thumb. Javadoc copied fromNumberRangeSliderTester.setEnd(java.lang.Number).- Parameters:
end- new end value- Throws:
IllegalArgumentException- if end is outside min/max or is below current start
-
incrementStart
public void incrementStart()Simulates pressing the arrow key on the start thumb to increase start by one step. Clamped to end value. Javadoc copied fromNumberRangeSliderTester.incrementStart(). -
decrementStart
public void decrementStart()Simulates pressing the arrow key on the start thumb to decrease start by one step. Clamped to min. Javadoc copied fromNumberRangeSliderTester.decrementStart(). -
incrementStartBy
public void incrementStartBy(int steps) Simulates the user dragging the start thumb to increase start by the given number of steps. Clamped to end value. Javadoc copied fromNumberRangeSliderTester.incrementStartBy(int).- Parameters:
steps- number of steps to increment
-
decrementStartBy
public void decrementStartBy(int steps) Simulates the user dragging the start thumb to decrease start by the given number of steps. Clamped to min. Javadoc copied fromNumberRangeSliderTester.decrementStartBy(int).- Parameters:
steps- number of steps to decrement
-
incrementEnd
public void incrementEnd()Simulates pressing the arrow key on the end thumb to increase end by one step. Clamped to max. Javadoc copied fromNumberRangeSliderTester.incrementEnd(). -
decrementEnd
public void decrementEnd()Simulates pressing the arrow key on the end thumb to decrease end by one step. Clamped to start value. Javadoc copied fromNumberRangeSliderTester.decrementEnd(). -
incrementEndBy
public void incrementEndBy(int steps) Simulates the user dragging the end thumb to increase end by the given number of steps. Clamped to max. Javadoc copied fromNumberRangeSliderTester.incrementEndBy(int).- Parameters:
steps- number of steps to increment
-
decrementEndBy
public void decrementEndBy(int steps) Simulates the user dragging the end thumb to decrease end by the given number of steps. Clamped to start value. Javadoc copied fromNumberRangeSliderTester.decrementEndBy(int).- Parameters:
steps- number of steps to decrement
-