TESTEVERYTHING

Sunday 15 May 2011

Scroll the page using QTP / Scroll bar handling

Hi All,

Sometimes in application we need to scroll the page or object grid list item. Like in search result of Google page next link comes at the end of the page. For click the next page link we have to scroll the page. In that case QTP does not record scroll down event. Usually it’s seen that QTP identifies the object in the page irrespective of scroll down.

But some times it does not work for items list in grid. OR it will take time. For this we can use scrollintoview method. It will automatically scroll the page up to object view.


Like:

Browser(“Google”).Page(“testeverything – Google”).Link(“Next”).Object.scrollIntoView

Scroll bar QTP


3 comments:

Anonymous said...

nice

Anonymous said...

thumbs up :)

Anonymous said...

Thank you so much. I have been looking for this for long time

Post a Comment

Which one is right ?

Translate







Tweet