1. What are the differences between function and action?

Note: It depends on the comfortably/requirement for any person to decide which one is better among Action Vs Function.
There are couple of ways for doing this.
'For page up
Note: It depends on the comfortably/requirement for any person to decide which one is better among Action Vs Function.
2. How can you scroll down or up in a page using QTP?
There are couple of ways for doing this.
'For page up
Set Obj=Browser("browsername").Page("pagename").Object.body
Obj.doScroll("pageUp")
Obj.doScroll("pageUp")
'For page down
Set Obj=Browser("browsername").Page("pagename").Object.body
Obj.doScroll("pageDown")
Obj.doScroll("pageDown")
Or you can also the following Send Keys method:
'For page up
Set objShell=CreateObject("WScript.Shell")
objShell.SendKeys "{PGUP}"
objShell.SendKeys "{PGUP}"
'For page down
Set objShell=CreateObject("WScript.Shell")
objShell.SendKeys "{PGDN}"
objShell.SendKeys "{PGDN}"
Hi,
ReplyDeleteUseful article.But it's very difficult to read the differences between function and action.
QTPbook