Class DecimalSliderElement

java.lang.Object
com.vaadin.testbench.TestBenchElement
com.vaadin.flow.component.slider.testbench.DecimalSliderElement
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 DecimalSliderElement extends TestBenchElement
A TestBench element for testing a DecimalSlider component.

See IntegerSliderElement for testing IntegerSlider components.

  • Constructor Details

    • DecimalSliderElement

      public DecimalSliderElement()
  • 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