How to resolve Drag and Scroll not working issue in TruClient Protocol Loadrunner

I was doing truclient protocol based scripting for one of the applications developed on WebSwings. So the entire webpage was considered as one single element or object and all the clicks made on that page were being recorded using their X & Y coordinates.

Issue:

  • So when I click and drag the page slider down in the scroll bar it was getting recorded as a 'Drag' step.
  • But during replay script was not able to perform the drag since it was not able to identify the object.


Solution:

  • Instead of doing a click and drag of the page slider, scroll the page by clicking on the down button in the scroll bar. 

  • It will get recorded as 'Click' step.
  • Now change the step Action from 'Click' to 'Mouse Down'. 


  • Increase the Step Minimum Time to 10 sec. This needs to be done because we need to give sometime for the page to scroll before the next step gets executed. Since Truclient is asynchronous in nature.



Similarly for drag or scroll up click the up button in the scroll bar and change the step action to 'Mouse Up'.

Thats it now your page drag will work without any issues.

No comments:

Post a Comment