| || |
Identify Scroll Bar in Browser and it\'s properties
I'm using QTP 11.0 and IE 8.0, In my application
I have a page with more no. of columns(which is dynamic), which cause my browser to have Horizontal scroll bar and few times Vertical scroll bar.
Few times without scroll bars. I need to take screenshot for entire by moving Scrollbar Horizontally and vertically.
1. I'm struggling here to find whether the (Horizontal or Vertical)scroll bar is displayed in application or not, and if it exist
2. How to find the scroll bar properties(Scroll bar: Track length and Slider length).
I browsed with many helps but it wont works for me, I'm struggling with this for past 1 month. I need to deliver in next 10 days.
My application is designed with HTML, It need to be implement this in two case(having scroll bars). They are identified as
I tried with GetRoProperty of HasHScroll, HasVScroll , MaxHScrollPos, MaxVScrollPos these returns empty value. I too tried to find properties by Browser(..).Page(..).Frame(..).WebElement(..).obje ct.body. But I'm not able to identify it clearly.
But i was able to move page by Browser("xyz").page("xyz").frame("xyz").webelement ("xyx").Object.doScroll "scrollbarPageDown"
Please response as soon as possible, since i was very much need of it.
Thanks in advance,
Re: Identify Scroll Bar in Browser and it\'s properties
Have a look at my post in this link.
It is code to add a .hasScrollbar to the 'Browser' object