Micro Focus QTP (UFT) Forums
How to handle scroll down in the web page - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to handle scroll down in the web page (/Thread-How-to-handle-scroll-down-in-the-web-page)

Pages: 1 2


RE: How to handle scroll down in the web page - chandu - 03-22-2011

they said if it doesnot support vscroll or hscroll method rt? they didn't say they dont have scroll object


RE: How to handle scroll down in the web page - basanth27 - 03-22-2011

No more comments. Please read through webpages, webobjectS and scroll in web based application.


RE: How to handle scroll down in the web page - verma.vik6 - 04-05-2012

I have an alternative way of doing this..
It might sound different but so far, i found it the best way to scroll down till the required web object.

As per your requirement, you want to scroll down to capture a bitmap located at the end of the web page. If this is your requirement, just highlight the Image. When you highlight it, the page will be scroll down and then capture it.. Smile

for eg:
Code:
Browser("").Page("").Image("").Highlight
Browser().Page("").Image("").CaptureBitmap(fileName)
'' Thats it..


RE: How to handle scroll down in the web page - qtplearner88 - 03-29-2013

Hi Basanth,

Could you please explain the code written above if you find some time. I am not familiar with this mouse event stuff.. It would be a great help if you can explain. THanks!

Regards
Viveke


RE: How to handle scroll down in the web page - basanth27 - 04-01-2013

This function activates the scroll wheel on your mouse. What happens is, irrespective of the window or webpage you are on, this function will activate the scroll button on your mouse and per the number lets say 2, it will scroll 2 steps down and -2 will scroll 2 steps up.
It utilizes the user32.dll on your windows OS to talk directly to the mouse device and performs the action. It is not dependent on the application.