This is the best way of closing Browser
For Maximize
Note: Its best practice to maximize window,
First get the handle of browser, then Activate then Maximize.
Regards,
Munna Sarfraz
Code:
Browser("Browser").Close
For Maximize
Code:
hWnd=Browser("Browser").GetROProperty("hwnd")
hWnd = Browser("hwnd:=" & hWnd).Object.hWnd
Window("hwnd:=" & hWnd).Activate
Window("hwnd:=" & hWnd).Maximize
Note: Its best practice to maximize window,
First get the handle of browser, then Activate then Maximize.
Regards,
Munna Sarfraz