Simple trick for Page Scroll:


Simple trick for Page Scroll in QTP:
Syntax:
object .doScroll(“Scrollingaction”)
Scrolling Actions:
1.Up
2.down
3.pageUp
4.pageDown
5.pageLeft
6.pageRight and many more….
Function Scroll()
Browser(“micclass:=Browser”).Page(“micclass:=Page”).Sync
Set oDoc=Browser(“micclass:=Browser”).Page(“micclass:=Page”).Object.Body
oDoc.doScroll(“pageDown”)
Set oDoc=Nothing
End Function
Advertisements

2 responses to this post.

  1. Posted by nirmala on June 7, 2011 at 1:50 pm

    Hi
    i have a concern reg. page scroll
    i have a button on my application page, if i click it, the page scrolls down to the starting of a table at the bottom automatically.
    How can i make sure, that click worked or not (whether the button is working or dead)
    Thanks
    Nirmala.

    Reply

    • Nirmala, i am not sure what you mean when you say “Clicked is worked or not”, if you want to verify then
      1.Click on button
      2.wait for a sec
      3.Take a snapshot and attach it on report [http://wp.me/pSJOm-3D]
      4.Verify.

      let me know if it’s not the soln that you were looking for..

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: