Micro Focus QTP (UFT) Forums
Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - 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: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top (/Thread-Vertical-Scroll-Bar-Issue-Unable-to-move-the-inner-vertical-scroll-bar-to-the-top)



Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - v.swaminathan - 10-12-2011

Sub: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top

Hello,
In my web application, there is a page with two scroll bars. The first one is the IE scroll bar and the second one is for the results grid under a web table.

I am not able to move the second vertical scroll bar up (this scroll bar come under a web table in the page). Please provide me a solution for the same.
Have attached the UI of these scroll bars for reference

Note:
The first one I am able to scroll up using the below script:
Code:
Set Obj=Browser("name:=.*").Page("title:=.*").Object.body
Obj.doScroll("pageUp")

Browser: IE 7.0
QTP Version: 11.0

Thanks and Regards,
Swami


RE: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - Sathiya - 10-13-2011

hi,
once try with record and playback for both scroll bars, then you may get an idea.. meanwhile i am also trying for the solution


RE: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - v.swaminathan - 10-13-2011

This action does not get recorded in the normal mode. I do not want to do with any other recording modes are they will not be the best way to do this. Please let me know if it is possible with DP.


RE: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - v.swaminathan - 10-18-2011

Any solution for this?


RE: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - Ankesh - 10-18-2011

Hi Swaminathan,

Is your objective to scroll the innere scroll bar? Or u jaust want to fetch the valu from the table?

If your answer is the second one then...

U can use SelectRow method which will inturn scroll the scroll bar and u will be able to fet the values as well.

Do let me know if this doesn't help.

Regards,
Ankesh


RE: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - v.swaminathan - 10-19-2011

Thanks Ankesh.. this works for me...


RE: Vertical Scroll Bar Issue - Unable to move the inner vertical scroll bar to the top - Sathiya - 10-20-2011

Hi Swami,
Will you please share the code which works fine now? Smile