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 Details

    • IntegerSliderLocator

      public IntegerSliderLocator()
    • IntegerSliderLocator

      public IntegerSliderLocator(IntegerSlider component)
  • Method Details

    • getComponent

      public IntegerSlider getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<IntegerSlider>
      Returns:
      the component under test
    • ensureComponentIsUsable

      public void ensureComponentIsUsable()
      Description copied from interface: Clickable
      Ensures the component is in a usable state before interaction.
      Specified by:
      ensureComponentIsUsable in interface Clickable<IntegerSlider>
    • setValue

      public void setValue(Integer value)
      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 from NumberSliderTester.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 from NumberSliderTester.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 from NumberSliderTester.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 from NumberSliderTester.decrementBy(int).
      Parameters:
      steps - number of steps to decrement