QTP: Code to refresh a page.
Hi all,
I'm trying to refresh a webpage using QTP.
I tried the following code:
dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{F5}"
Set WshShell = Nothing
But no use...
Please let me know the solution to this.
Regards,
Tina Mahajan.
Re: QTP: Code to refresh a page.
Browser("micclass:=Browser").Refresh
Re: QTP: Code to refresh a page.
[QUOTE=Tina Mahajan;29434]Hi all,
I'm trying to refresh a webpage using QTP.
I tried the following code:
dim WshShell
Set WshShell = CreateObject("WScript.Shell")
[COLOR="Blue"]Browser("browser").Activate[/COLOR]
WshShell.SendKeys "{F5}"
Set WshShell = Nothing
But no use...
Please let me know the solution to this.
Regards,
Tina Mahajan.[/QUOTE]
Regards,
Nawab
Re: QTP: Code to refresh a page.
Re: QTP: Code to refresh a page.
Thanks very much for the info..Its working fine