Hi,
I have one java based application where slider is being used using JSlider as attached in the screenshot.
Ranorex spy is not able to identify the slider but its able to identify (0-4) as slider.
Please find the rxrep attached here as well.
I want to move the slider back and forth using automation. Can any one help me to solve this issue.
And also, there are slider with two handles and not able to recognize each handles individually and hence becoming hard to automate such cases. Any suggestion would be highly appreciated.
Move Slider - Jslider
Move Slider - Jslider
You do not have the required permissions to view the files attached to this post.
Regards,
Subodh
Subodh
Re: Move Slider - Jslider
Hi,
Could you please upload a Ranorex snapshot of the entire slider thing? Repository is not very useful here. If the "slider" button is not recognizable, you will most probably have to change the slider position by clicking at 0...4 positions? Eventually, set the slider position from code. But it's hard to tell without seeing the snapshot and ideally, also a small sample app featuring this slider element.
Could you please upload a Ranorex snapshot of the entire slider thing? Repository is not very useful here. If the "slider" button is not recognizable, you will most probably have to change the slider position by clicking at 0...4 positions? Eventually, set the slider position from code. But it's hard to tell without seeing the snapshot and ideally, also a small sample app featuring this slider element.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Move Slider - Jslider
You might be able to set the TagValue which in turn will change the value for the slider.
But yeah, as odklizec said, can't confirm without a snapshot for the entire slider.
But yeah, as odklizec said, can't confirm without a snapshot for the entire slider.
Re: Move Slider - Jslider
I am afraid that I won't be able to share the snapshot because it shows the whole application snapshot and in turn could lead to violation of company policy.
odklizec wrote:Hi,
Could you please upload a Ranorex snapshot of the entire slider thing? Repository is not very useful here. If the "slider" button is not recognizable, you will most probably have to change the slider position by clicking at 0...4 positions? Eventually, set the slider position from code. But it's hard to tell without seeing the snapshot and ideally, also a small sample app featuring this slider element.
Regards,
Subodh
Subodh
Re: Move Slider - Jslider
Well, in this case, there is nothing else we can do for you. Without at least snapshot, it's next to impossible to suggest something reliable. You can either try to set the slider value by clicking the values 0...4 or using SetValue action, as suggested by Martin.
BTW, you can try to save the snapshot with unchecked setting option "Let snapshot contain complete ancestor tree" (Settings >> Advanced tab). This should minimize the snapshot footprint and the amount of elements saved in snapshot. Just make sure there is saved entire parent container, holding all slider elements. Simply track the parent container (Difference image), instead of just slider button).
Edit: I've found a jslider sample and if your slider is not something completely custom-made, SetValue should be the way to go. At least it worked for me.
BTW, you can try to save the snapshot with unchecked setting option "Let snapshot contain complete ancestor tree" (Settings >> Advanced tab). This should minimize the snapshot footprint and the amount of elements saved in snapshot. Just make sure there is saved entire parent container, holding all slider elements. Simply track the parent container (Difference image), instead of just slider button).
Edit: I've found a jslider sample and if your slider is not something completely custom-made, SetValue should be the way to go. At least it worked for me.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Move Slider - Jslider
Be aware that SetValue() (and other InvokeAction methods like Press()) may not fire all events related to entering the value as would keyboard or mouse entry, depending on how the AUT was coded and what element you are Invoking against. You may have to do those yourself.
Shortcuts usually aren't...