Showing posts with label Browser. Show all posts
Showing posts with label Browser. Show all posts

Wednesday, February 8, 2012

Maximize the Browser

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