This is a migrated thread and some comments may be shown as answers.

ScrollViewer

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 26 Mar 2018, 02:15 PM
Hi,

Is it possible not to use specific XY coordinates when simulating a click on ScrollViewer in order to change its value? For example, clicking on the right side or left to increase or decrease the value. Can I use the ScrollToLeftEnd() or ScrollToRightEnd() methods, or are there more suitable ones?

For example, in the picture, what would be the best way to simulate the user setting the value to 1.23%?

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 29 Mar 2018, 12:30 PM
Hi Peter,

Please specify the nature of the application you are automating. Is it a Web or WFP based one?
The control you have there seems to be a Slider instead of a ScrollViewer. It is possible to automate such elements in coded steps indeed. Once you locate the element you may control it using the available wrapper methods. 

I hope this helps.

Best Regards,
Nikolay Petrov
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or