Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18120 Posts in 4741 Topics- by 31743 Members - Latest Member: suuraj
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: How to get the position of scroll bar?    (Read 421 times)
Pawan Dixit
User
*
Offline Offline

Posts: 37


« on: June 04, 2009, 12:49:30 PM »

Hi All,

I want to get the position of scroll bar(Horizontal & Vertical) with the help of QTP.

Is there any way to do so?

Regards,
Pawan Dixit
Logged
Rohith Vishwanath
User
*
Offline Offline

Posts: 24

Wrking as a Automation Engineer on QTP. Thirst to explore advance options in QTP and leverage that knowlede to solve problem and to share what I have learnt.


« Reply #1 on: February 23, 2010, 02:01:53 AM »

Hi,

       You got to use GetRoProperty for properties - maxvscrollpos, vscrollpagesize and vscrollposition. Of course, you can just use vscrollposition to get the position, but if you want to know if you have reached the bottom of the scroll, you can use the formula maxvscrollpos - vscrollpagesize = vscrollposition + 1(God knowz why you got to add 1). Try out, you will better understand.
Logged
Pages: [1]   Go Up
Print
Jump to: