Package com.vaadin.flow.component.slider
Class IntegerSliderLocator
java.lang.Object
com.vaadin.browserless.locator.Locator<IntegerSlider,IntegerSliderLocator>
com.vaadin.flow.component.slider.IntegerSliderLocator
- All Implemented Interfaces:
Clickable<IntegerSlider>
@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor")
public class IntegerSliderLocator
extends Locator<IntegerSlider,IntegerSliderLocator>
implements Clickable<IntegerSlider>
Generated locator for
IntegerSlider, derived from
IntegerSliderTester. 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 the user pressing the Left/Down arrow key to decrease the value by one step.voiddecrementBy(int steps) Simulates the user dragging the slider handle to decrease the value by the given number of steps.voidEnsures the component is in a usable state before interaction.Gets the component being tested.voidSimulates the user pressing the Right/Up arrow key to increase the value by one step.voidincrementBy(int steps) Simulates the user dragging the slider handle to increase the value by the given number of steps.voidSimulates the user dragging the slider handle to the given value.Methods inherited from class com.vaadin.browserless.locator.Locator
atIndex, component, components, exists, inside, inside, invalidate, self, with, withAriaLabel, withAriaLabelContaining, withAttribute, withAttribute, withCaption, withCaptionContaining, withClassName, withCondition, withId, withLabel, withLabelContaining, withoutAttribute, withoutAttribute, withoutClassName, withoutTheme, withText, withTextContaining, withTheme, withValueMethods 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, rightClick
-
Constructor Details
-
IntegerSliderLocator
public IntegerSliderLocator() -
IntegerSliderLocator
-
-
Method Details
-
getComponent
Description copied from interface:ClickableGets the component being tested.- Specified by:
getComponentin interfaceClickable<IntegerSlider>- 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<IntegerSlider>
-
setValue
Simulates the user dragging the slider handle to the given value.Throws if the component is not usable or the value is outside the min/max range. Javadoc copied from
NumberSliderTester.setValue(java.lang.Number).- Parameters:
value- value to set- Throws:
IllegalArgumentException- if the value is outside the min/max range
-
increment
public void increment()Simulates the user pressing the Right/Up arrow key to increase the value by one step. The value is clamped to the maximum. Javadoc copied fromNumberSliderTester.increment(). -
decrement
public void decrement()Simulates the user pressing the Left/Down arrow key to decrease the value by one step. The value is clamped to the minimum. Javadoc copied fromNumberSliderTester.decrement(). -
incrementBy
public void incrementBy(int steps) Simulates the user dragging the slider handle to increase the value by the given number of steps. The value is clamped to the maximum. Javadoc copied fromNumberSliderTester.incrementBy(int).- Parameters:
steps- number of steps to increment
-
decrementBy
public void decrementBy(int steps) Simulates the user dragging the slider handle to decrease the value by the given number of steps. The value is clamped to the minimum. Javadoc copied fromNumberSliderTester.decrementBy(int).- Parameters:
steps- number of steps to decrement
-