Class DecimalSliderLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<DecimalSlider,DecimalSliderLocator>
com.vaadin.flow.component.slider.DecimalSliderLocator
All Implemented Interfaces:
Clickable<DecimalSlider>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class DecimalSliderLocator extends Locator<DecimalSlider,DecimalSliderLocator> implements Clickable<DecimalSlider>
Generated locator for DecimalSlider, derived from DecimalSliderTester. 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

    • DecimalSliderLocator

      public DecimalSliderLocator()
    • DecimalSliderLocator

      public DecimalSliderLocator(DecimalSlider component)
  • Method Details

    • getComponent

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

      public void setValue(Double 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