Skip to content
QiTASC.com / UI Steps Language / Apptests /
Set Slider Values
/ .. / .. /
Set Slider Values










Set Slider Values

In test cases where a value needs to be changed or set with a slider, the slider Element and its associated Action must be defined (see Views for instructions ). Next, the slider value can be set within a Function.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
view ExampleView
    elem volumeSlider := "id('slider')"
    action(volumeSlider) slideTo := type
end

model
  func test()
    myView := await ExampleView
    myView.slideTo("35")
  end
end

Slider values are app-specific. To find out the slider's range of values, use the Selendroid Inspector to select and inspect the Element when it is at its minimum value. Next, repeat this for the maximum value.