Micro Focus QTP (UFT) Forums
unable to press Ctrl + F5 - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: unable to press Ctrl + F5 (/Thread-unable-to-press-Ctrl-F5)



unable to press Ctrl + F5 - rajvanan - 05-11-2010

Press Ctrl + F5 using sendkeys not working .

Code used :

Code:
Set WshShell= CreateObject("WScript.Shell")
WshShell.SendKeys "^" + "{F5}"

Also tried out sending {f5}, F5 , {^f5} ...but doesn't seem to work

We don't want to use Browser().refresh ....

Interestendingly Ctrl + F  works ........"^" + "f".

Please help ...


RE: unable to press Ctrl + F5 - raghavnm - 05-11-2010

Hi Rajavan,

This may help you,

Code:
Browser("Google Home Page").page("Login Page").type micCtrlDwn micF5 micCtrlUp
The working of the above code is like this,
MicCtrlDwn -> This will press the Ctrl key
MicF5 - > This will press the F5 key
MicCtrlUp - > This will release the Ctrl key.