QTP menu item count/check short cuts

Hi,
I am working on QTP automation of a application which is Java based. I would like to count the submenu options available for one of the menu item (say for ex 'File' ) also I would like to verify he whether it has shot cuts (i.e ALT+f for File). How can I proceed on this?

Note : GetItemProperty, GetItemProperty(Itempath, Label) doesnot work on this.

thanks,
-MP
murthymp@rediffmail.com

Questions by murthymp

Showing Answers 1 - 2 of 2 Answers

amandeep.g

  • Jul 31st, 2008
 

Public Sub MaximizeBrowser(test_object) browserHWND = test_object.GetROProperty("hwnd") Set BrowserWindow = Window("hwnd:=" & browserHWND) If BrowserWindow.GetROProperty("maximized") = "False" Then BrowserWindow.Maximize() End If End Sub RegisterUserFunc "browser", "Maximize", "MaximizeBrowser"

you can use this function to maximise your browser. it checks whether the browser is maximised or not.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions