I am unable to maximize browser window using QTP..
I used following two types of code:
title= Browser("micClass:=Browser").GetROProperty("title" )
Window("title:=" & title).Maximize
hWnd = Browser("browser_name").GetROProperty("hwnd")
Window("hwnd:=" & hWnd).Maximize
when i try to execute this code i am getting error message like,
"The (Window) object's description matches more than one of the objects currently displaying in you application. Add additional properties to the object description in order to uniquely identify the object".
Actualy there is only one browser window while executing this code.
As mentioned by Nouse4aName you can use sendkeys.
More consistent way is to send keys to the respective browser as below.
nHwnd = Browser("title:=some title").GetROProperty("hwnd")
Window("hwnd:=" & nHwnd).Type micAltDwn
Window("hwnd:=" & nHwnd).Type " "
Window("hwnd:=" & nHwnd).Type "X"
Window("hwnd:=" & nHwnd).Type micAltUp