Forum Discussion

pradeep_kamatha's avatar
pradeep_kamatha
Contributor
11 years ago

How to automate Drag method to scroll scroll bar in web page through Test comlete

I have a scroll bar in my web page, it has to be scrolled down to find and click on the objects.  I ran recorded script to find out parameters for Drag method, it is working fine when I run manually using break point.  Without break point when I click run button it is gonna failed to identify scroll bar.  The below is code scroll bar xpath and the paramters are  for Drag method.



 var innerscroll = "//div[@class='z-listbox-body']"

          var jobscrollbar    = browser.FindChildByXpath(innerscroll);

               

          jobscrollbar.Drag(787, 65, 3, 529);

Do we have any other way to get it done? Please suggest me..