18 January 2026:


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.

value settings on hsslider in flex

Debakanta sahuDebakanta sahu Members
edited July 2011 in Sahi - Open Source
Hi,
Problems with slider control like -When i move the slider button it moves accordingly .
But after that i click on a search button.after clicking the value appeared on the page column(Rating) didn't change.
It remains same as before the drag drop work.It is a flex application and i use sahi_pro.
I try it using following functions

1.DragDrop();
2.DragDropXY();
3._mouseOver();
_mouseDown();
_mouseUp();
4._setValue();

But having no luck on it
Code :

for(var $value=0;$value<$drop.length;$value++)
{
_setValue(_f("ABC").hslider("slider"), $drop[$value]);
_wait(5000);
_click(_f("ABC").button("Search"));
_wait(6000);
}

Comments

  • narayannarayan Administrators
    Hi Debakanta,

    Can you please explain what the loop is for?

    To set a slider control's value, you just need _setValue. Eg.

    _setValue(_f("RTReview").hslider("slider"), 10);

    Regards,
    Narayan
  • Hi Narayan,

    According to you _setValue(_f("ABC").hslider("slider"), 10); it is ok and the value is set.
    But after that i click on a search button.after clicking the value appeared on the column right to the slider
    didn't change.
    but it should change according to the value set in setValue() method like
    if i set 70 then the values appeared on the column between 70-100. but it remains same as on the first instance.

    the for loop is for incrementing the slider value like 10,20.... and set accordingly.

    Regards,
    Debakanta
Sign In or Register to comment.