18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
how to move slider bar ??
Dear All,
I have one slider bar its code is mentioned below:
this slider bar moves from left to right and right to left.
when this slider bar moves, only below mentioned parameter is changed.
div ---> slider_left ----> its width changes from 48px, 88px, 128px, 166px.
div ---> slider-thumb ----> its left parameter changes from 40px, 80px, 120px, 160px.
can somebody tell me how to set this div value ???
when I record and play back in sahi, it is only showing click(_div(slider_left));
something like that.
but what if i want to go to right to left and again left to right..?
can some body tell me how to set this value so,the slider bar can move ???
I have one slider bar its code is mentioned below:
<div id="slider-bg" class="yui-h-slider" tabindex="2" title="Slider" style="margin-left: 60px; cursor: pointer; height: 27px; width: 218px;">
<div id="slider_left" style="background-image: url(http://10.20.20.79/tweb/theme/default/img/allimg.png); background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: transparent; left: 5px; position: absolute; height: 28px; z-index: 1; width: 48px; background-position: -305px -293px; background-repeat: no-repeat no-repeat; "></div>
<div id="slider-thumb" class="yui-slider-thumb" style="background-image: url(http://10.20.20.79/tweb/theme/default/img/allimg.png); background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: transparent; z-index: 2; height: 25px; width: 25px; left: 40px; top: 5px; background-position: -559px -331px; background-repeat: no-repeat no-repeat; "></div>
</div>
this slider bar moves from left to right and right to left.
when this slider bar moves, only below mentioned parameter is changed.
div ---> slider_left ----> its width changes from 48px, 88px, 128px, 166px.
div ---> slider-thumb ----> its left parameter changes from 40px, 80px, 120px, 160px.
can somebody tell me how to set this div value ???
when I record and play back in sahi, it is only showing click(_div(slider_left));
something like that.
but what if i want to go to right to left and again left to right..?
can some body tell me how to set this value so,the slider bar can move ???
Comments
The following piece of code is an example of how that can be accomplished, unfortunately, the sample YUI2 page uses a "Self-Executing Anonymous Function" to instantiate the YUI2 slider, and the original slider reference cannot be accessed from the sample custom functions. This has the drawback that event handlers get disconnected by creating another instance, and I manually update the "slider-value" in order to illustrate this.
Having a global reference to the slider could help, but that might not be always the case.
Replace ';' by ':', '_' by '.' and '\' by '/' at _navigateTo() (the YUI sample page, forum limitations on me) to have the example work.
Regards,
Marvin