Class AbstractSlider<T extends AbstractSlider<T>>

Type Parameters:
T - inheritor class type
All Implemented Interfaces:
SpecificConditionHandler, ByLocator, SelenideElementWrapper<T>
Direct Known Subclasses:
RangeSlider, Slider

public abstract class AbstractSlider<T extends AbstractSlider<T>> extends AbstractField<T>
Abstract class for slider web-element wrappers. Supports setting value.

A slider is rendered as a native range input, which ignores the typed text, so the value is set by JavaScript. The disabled and readonly states are kept on the slider web-element itself instead of its input, hence they are checked on the wrapped web-element.

  • Constructor Details

    • AbstractSlider

      protected AbstractSlider(org.openqa.selenium.By by)
  • Method Details

    • setValueInternal

      protected void setValueInternal(com.codeborne.selenide.SelenideElement input, String value)
      Sets the value to the passed input web-element of the slider.
      Parameters:
      input - input web-element of the slider
      value - value as a string presentation value