Class IntegerSliderElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.slider.testbench.IntegerSliderElement
All Implemented Interfaces:
CanCompareScreenshots, HasCallFunction, HasDriver, HasElementQuery, HasHelper, HasLabel, HasPropertySettersGetters, HasSearchContext, HasTestBenchCommandExecutor, HasValidation, org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement, org.openqa.selenium.WrapsElement

public class IntegerSliderElement extends TestBenchElement
A TestBench element for testing an IntegerSlider component.

See DecimalSliderElement for testing DecimalSlider components.

  • Constructor Details

    • IntegerSliderElement

      public IntegerSliderElement()
  • Method Details

    • setValue

      public void setValue(Integer value)
      Sets the value of the slider, emulating user input. The emulation is done by setting the value property to the given value and then triggering synthetic input and change DOM events to synchronize the value with the server side.
    • getValue

      public Integer getValue()
      Gets the current value of the slider.
      Returns:
      the current value
    • getInputElement

      public TestBenchElement getInputElement()
      Gets the input element of the slider.
      Returns:
      the input element
    • getMin

      public Integer getMin()
      Gets the minimum value of the slider.
      Returns:
      the minimum value
    • getMax

      public Integer getMax()
      Gets the maximum value of the slider.
      Returns:
      the maximum value
    • getStep

      public Integer getStep()
      Gets the step value of the slider.
      Returns:
      the step value