Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to check scroll bar exists on a page
#1
Not Solved
Hi,
can some one help me how to check if there is a scrollbar on a page.

Thanks,
kris
Reply
#2
Not Solved
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

Reply
#3
Not Solved
Could you provide me the any documents related to these keywords like object.body.scrollHeight
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Report Viewer showing hundreds of WebElement.Exists? themoon 1 2,335 03-09-2016, 02:43 PM
Last Post: vinod123
  How to check whether data exists in excel.. venkatesh9032 1 3,073 03-06-2014, 04:37 PM
Last Post: supputuri
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,073 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  In qtp how to manage status bar for portal(SAP WEB Application) kamal262007 0 2,653 03-08-2013, 12:58 PM
Last Post: kamal262007
  Object does not exists shwetasharma 4 9,103 03-01-2013, 01:05 PM
Last Post: shwetasharma

Forum Jump:


Users browsing this thread: 1 Guest(s)