For example, I would like to config the slider in the below web page, which involed 1. clicking on the correct tick box and 2. drag the slide to a specific value (there is no text box to enter the value, so I have to drag until the correct minimum and maximum).
Thank you in advance.
Solved! Go to Solution.
It was more difficult than I think...
So I decided to change the approach, and try to drag the slider handle with the mouse.
For now, I need to know the coordinates (X, Y) of the UI element.
Referring to the documentation below, I was able to get them:
To emulate the drag operation of mouse, I used actions below:
"Move mouse (to the X, Y coordinates of UI element)"
"Send mouse click (Left button down)"
"Move mouse (increase X value to move it to right direction)
"Send mouse click (Left button up)"
It's not beautiful, but it worked anyway...
Screenshots of my example flow:
As a result, I could change the min value of "Tot. Rev ($M)" by moving the slider handle 200 pixels to the right from its initial position:
However, as you may have already noticed, the minimum / maximum value of the slider varies depending on each item, so you have to calculate how much you need to move the mouse left and right in order to set it to the target value. Also depending on the environment of the machine that is running this flow, the position and scale of X and Y may change.
In my personal opinion, it can be difficult to develop a flow having production quality with above approach...
You are awesome! The code you shared with us works just fine.