Package com.vaadin.flow.component.slider
Class IntegerRangeSliderLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<IntegerRangeSlider,IntegerRangeSliderLocator>
com.vaadin.flow.component.slider.IntegerRangeSliderLocator
- All Implemented Interfaces:
Clickable<IntegerRangeSlider>,HasLabelFilter<IntegerRangeSlider,,IntegerRangeSliderLocator> HasValueFilter<IntegerRangeSlider,IntegerRangeSliderValue, IntegerRangeSliderLocator>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class IntegerRangeSliderLocator
extends Locator<IntegerRangeSlider,IntegerRangeSliderLocator>
implements Clickable<IntegerRangeSlider>, HasLabelFilter<IntegerRangeSlider,IntegerRangeSliderLocator>, HasValueFilter<IntegerRangeSlider,IntegerRangeSliderValue,IntegerRangeSliderLocator>
Generated locator for
IntegerRangeSlider, derived from
IntegerRangeSliderTester. 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
Constructors -
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(IntegerRangeSliderValue 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, withId, 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.HasValueFilter
withValue
-
Constructor Details
-
IntegerRangeSliderLocator
public IntegerRangeSliderLocator() -
IntegerRangeSliderLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<IntegerRangeSlider>- 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<IntegerRangeSlider>
-
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
-