Hi Venkat,

Wish You A Very Happy Diwali!!!!

Answer to your problem can be as below:

Let me put a scenario before you which can help you understand.

Scenario : I assume you want to scroll down a webpage.

Answer:

You can use WSH Object and sendkeys method provided by QTP.

Use following code.

Browser("Citibank India Home").Page("Citibank India Home").Highlight

Set objShell=CreateObject("WScript.Shell")
objShell.SendKeys "{PGUP}"
objShell.SendKeys "{PGDN}"
objShell.SendKeys "{END}"


This will scroll up/down your page.

Else 

If you want to scroll a webtable then use Object.Fireevent "onmousedown" 
property in qtp.

Thanks!!!

Enjoy Automation,
Shantanu 

On Wednesday, 30 October 2013 20:11:26 UTC+5:30, Venkat Kandula wrote:
>
> Hi Google groups,
>
> How should we scroll down, up, right and left operations on a webpage 
> using QTP.
>
> I tried in so many ways getting following error
>
> Object doesn't support this property or method
>
> a).
>
> Browser(" ").Page(" ").parentwindow.scrollby 0,1280
>
> b).
>
> Set Oscroll=Browser("micclass:=Browser").Page("micclass:=Page").Object.Body
>
> Oscroll.doScroll("pageLeft")
>
> Set Oscroll=Nothing
>
> Please let me know if any one have idea about scroll operations.
>
>
> Thanks,
> Venkat
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to