Class IntegerRangeSliderLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.slider.IntegerRangeSlider,IntegerRangeSliderLocator>
com.vaadin.flow.component.slider.IntegerRangeSliderLocator
All Implemented Interfaces:
Clickable<com.vaadin.flow.component.slider.IntegerRangeSlider>, HasLabelFilter<com.vaadin.flow.component.slider.IntegerRangeSlider,IntegerRangeSliderLocator>, HasThemeFilter<com.vaadin.flow.component.slider.IntegerRangeSlider,IntegerRangeSliderLocator>, HasValueFilter<com.vaadin.flow.component.slider.IntegerRangeSlider,com.vaadin.flow.component.slider.IntegerRangeSliderValue,IntegerRangeSliderLocator>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class IntegerRangeSliderLocator extends Locator<com.vaadin.flow.component.slider.IntegerRangeSlider,IntegerRangeSliderLocator> implements Clickable<com.vaadin.flow.component.slider.IntegerRangeSlider>, HasLabelFilter<com.vaadin.flow.component.slider.IntegerRangeSlider,IntegerRangeSliderLocator>, HasValueFilter<com.vaadin.flow.component.slider.IntegerRangeSlider,com.vaadin.flow.component.slider.IntegerRangeSliderValue,IntegerRangeSliderLocator>, HasThemeFilter<com.vaadin.flow.component.slider.IntegerRangeSlider,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 Details

    • IntegerRangeSliderLocator

      public IntegerRangeSliderLocator()
      Creates a locator that searches for a IntegerRangeSlider.
    • IntegerRangeSliderLocator

      public IntegerRangeSliderLocator(com.vaadin.flow.component.slider.IntegerRangeSlider component)
      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

      public com.vaadin.flow.component.slider.IntegerRangeSlider getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<com.vaadin.flow.component.slider.IntegerRangeSlider>
      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<com.vaadin.flow.component.slider.IntegerRangeSlider>
    • setValue

      public void setValue(com.vaadin.flow.component.slider.IntegerRangeSliderValue value)
      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

      public void setStart(Integer start)
      Simulates the user dragging only the start (min) thumb. Javadoc copied from NumberRangeSliderTester.setStart(java.lang.Number).
      Parameters:
      start - new start value
      Throws:
      IllegalArgumentException - if start is outside min/max or exceeds current end
    • setEnd

      public void setEnd(Integer end)
      Simulates the user dragging only the end (max) thumb. Javadoc copied from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.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 from NumberRangeSliderTester.decrementEndBy(int).
      Parameters:
      steps - number of steps to decrement