Micro Focus QTP (UFT) Forums
how to check scroll bar exists on a 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to check scroll bar exists on a page (/Thread-how-to-check-scroll-bar-exists-on-a-page)



how to check scroll bar exists on a page - rm_kris@yahoo.com - 10-28-2009

Hi,
can some one help me how to check if there is a scrollbar on a page.

Thanks,
kris


RE: how to check scroll bar exists on a page - Saket - 10-29-2009

I am not aware of any direct method of doing this but I can suggest a workaround for this you can try with the code below
Code:
ScHeight = Browser(" ").Page(" ").Object.body.scrollHeight
ScHeight = int( round((ScHeight/1000),1))
If ScHeight > 0 Then
    msgbox "Scroll bar exists"
End If



RE: how to check scroll bar exists on a page - venkatbatchu - 10-29-2009

Could you provide me the any documents related to these keywords like object.body.scrollHeight