Class SliderElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.slider.testbench.SliderElement
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 SliderElement extends TestBenchElement
A TestBench element representing a <vaadin-slider> element.
  • Constructor Details

    • SliderElement

      public SliderElement()
  • Method Details

    • setValue

      public void setValue(double 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 double 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 double getMin()
      Gets the minimum value of the slider.
      Returns:
      the minimum value
    • getMax

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

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