I don't think we support a mousemove in Watir or Watir-webdriver. Webdriver might support it however, so if you are using watir-webdriver you could call directly down to the webdriver level to issue a mouse move
Other alternatives might be 1) use RAutomation, which about a month ago added a mouse api that includes press, move, release methods 2) ask your developer if you might be able to directly execute the code (via execute_script) that fires on mouseup, feeding it the required parameters to cause the slider to move where you want it to On Monday, April 16, 2012 5:52:12 PM UTC-7, Ankita Gupta wrote: > > I have asked the developer, he said I need to use MouseDown, then > MouseMove and then MouseUp event in order to drag the slider > > It would be great help if you could provide me the syntax for using > MouseMove command > > On Apr 17, 5:10 am, Chuck van der Linden <[email protected]> wrote: > > Your app may be using a different control. Ask your developer how > yours > > works and how it could be automated, does it accept keyboard input? can > you > > directly change some property of the slider to fool it into thinking it > has > > moved, is there a way to directly enter the value you want it to point > to? > > is there client side code you could execute to make it move where you > want > > it to. > > > > ultimately this kind of thing tends to become a testability issue > > > > > > > > > > > > > > > > On Sunday, April 15, 2012 5:05:06 PM UTC-7, Ankita Gupta wrote: > > > > > Thanks for your reply Chuck.. I already checked this solution before > > > posting the query here, but some how it doesn't work with my code. > > > > > On Apr 14, 6:31 am, Chuck van der Linden <[email protected]> wrote: > > > > We had a similar problem to this show up a few months back in stack > > > > overflow.. > > > > > > See if the answer to this question works for you > > >http://stackoverflow.com/q/8151911/409820 > > > > > > On Thursday, April 12, 2012 11:14:51 PM UTC-7, Ankita Gupta wrote: > > > > > > > Hi > > > > > > > I have a slider in my application which ranges from 0% to 100% . > Below > > > > > is the html for the same > > > > > > > <div class="rangepopout-slider"> > > > > > <div class="slider-handle-min" style="left: 0%; z-index: 2;"> > > > > > <div class="slider-handle-label" style="margin-left: -10.5px;">0 > %</ > > > > > div> > > > > > </div> > > > > > <div class="slider-handle-max" style="left: 100%; z-index: 1;"> > > > > > <div class="slider-handle-label" style="margin-left: -17.5px;">100 > %</ > > > > > div> > > > > > </div> > > > > > <div class="slider-range" style="left: 0%; width: 100%;"></div> > > > > > </div> > > > > > > > Now if I wanted to move the "slider-handle-min" and > "slider-handle- > > > > > max", how should I do that .. say I wanted to make it to move at > 10% > > > > > for slider-handle-min and 80% for slider-handle-max -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
