If you are using QTP 9.2 or 9.5 or 11.0 version with Internet Explorer then following code should help to maximize/minimize or restore the browser window.
hwnd = object.Object.HWND
Set oWin = Window("hwnd:=" & hwnd)
'To maximize the application
oWin.Maximize
'To restore the application
oWin.Restore
'To minimize the application
oWin.Minimize
No comments:
Post a Comment