Forum Discussion

mhienbinhphuoc_'s avatar
mhienbinhphuoc_
Occasional Contributor
12 years ago

Dragging or MouseWheeling is not effect for vscrollbar.

Hi all,



My scrollbar is created by DevExpress as below:

<div id="ruleContainer">

.....

  <div class="custom-vscrollbar" style="display: block; opacity: 0; top: 6px; left: 825px; height: 388px; width: 8px;">

     <div style="top: 0px; height: 316px;">

      </div>

   </div>

.......

</div>



I want to scroll down the scrollbar.

I called Drag().

When running test script, mouse is draged on GUI but scrollbar is not scrolled down.



Code is below:

 var container = page["NativeWebObject"]["Find"]("id", "ruleContainer");

  var CSSSelector = "div.custom-vscrollbar";  

  var vscrollBar = container["QuerySelector"](CSSSelector);

  vscrollBar["Drag"](5,113,5,187); 



when I used MouseWheel() method, scrollbar also did not scroll down.

   vscrollBar["MouseWheel"](120);



Please help me give some suggestion for this problem.

Thanks

Hien





No RepliesBe the first to reply