Answered

How to drag bootstrap slider?

We use bootstrap slider in some of our pages that looks like in the picture below, the user operate by drag the bar with mouse cursor, and as the user drag, the corresponding value will change. How can we use subject7 to simulate this drag process? I checked the Drag and drop documentation, but it seems it is designed for a different scenario.

1
2 comments

Official comment

Avatar
Payam Fard

Hi,

You can use the following command to achieve that and depending on whether your slider is horizontal or vertical you can change X offset or Y Offset. Following example assumes slider is horizontal. Also, if you want the horizontal slider to go to the left or vertical slider to go up, you can use negative numbers.

Please let us know how it goes.

In Advanced View:

MULTIACTION CLICK_AND_HOLD LOCATOR sample.slider.s, MOVE_BY_OFFSET X_OFFSET 80 Y_OFFSET 0, MultiActionReleaseCreator

 

In Grid View:

Comment actions Permalink
Avatar
Dhrupa Patel

It worked! Thanks!!

0
Comment actions Permalink

Please sign in to leave a comment.