Variable SliderConst

Slider: any = SliderInteractor

Call this InteractorConstructor to initialize a slider Interactor. The slider interactor can be used to interact with sliders on the page and to assert on their state.

The slider is located by the label or the aria-label attribute.

await Slider('Submit').click();
await Slider('Submit').is({ disabled: true });
await Slider({ id: 'submit-slider', disabled: true }).exists();
  • id: string – Filter by id
  • visible: boolean – Filter by visibility. Defaults to true. See isVisible.
  • disabled: boolean – Filter by whether the slider is disabled. Defaults to false.
  • orientation: horizontal | vertical - Filter by orientation
  • horizontal: boolean - Filter by whether the slider has horizontal orientation
  • vertical: boolean - Filter by whether the slider has vertical orientation
  • minValue: number - Filter by the least possible value
  • maxValue: number - Filter by the greatest possible value
  • value: number - Filter by the current value
  • textValue: string - Filter by the text representation of current value
  • min: boolean - Filter by whether the slider value is equal minValue
  • max: boolean - Filter by whether the slider value is equal maxValue
  • focus(): Interaction – Move focus to the slider
  • blur(): Interaction – Move focus away from the slider
  • decrease(steps: number = 1): Interaction – Decrease slider value by specific steps
  • increase(steps: number = 1): Interaction – Increase slider value by specific steps
  • setMin(): Interaction - Set value to the least possible
  • setMax(): Interaction – Set value to the greatest possible
  • setValue(value: number): Interaction – Set current value