Micro Focus QTP (UFT) Forums
QTP does not identify the IE menus like Tools, File, Edit and e.t.c - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP does not identify the IE menus like Tools, File, Edit and e.t.c (/Thread-QTP-does-not-identify-the-IE-menus-like-Tools-File-Edit-and-e-t-c)



QTP does not identify the IE menus like Tools, File, Edit and e.t.c - komila_srivastava - 04-24-2009

Hi,

There is a situation where i have to identify the IE browser tool menu using DP but doing so qtp is not able to identify the same, actually in IE all its menus like File, Edit, Tools etc are having same properties eventhough there index is also same there is no one property which is unique for each. Tried to identify the same by using childobjects method also but unsuccessfull, QTP throws General Run Error.

Plz provide the solution for the same as ASAP.

Thanks
Komila


RE: QTP does not identify the IE menus like Tools, File, Edit and e.t.c - tmcken - 05-03-2009

Code:
to recgonize/action the IE menu items, use VB scripting.
Set objShell = CreateObject("WScript.Shell")
objShell.SendKeys "{PGDN}"  'page up
objShell.SendKeys "{F5}"  'Press F5 button Refresh
objShell.SendKeys "%{F4}"  'Close the currently activated window/browser

% represents Alt
+ represents Shift
^ represents Ctrl