Micro Focus QTP (UFT) Forums
Maximize browser? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Maximize browser? (/Thread-Maximize-browser)



Maximize browser? - 1981.madhu@gmail.com - 12-29-2009

Hi,
Is this any know problem to maximze the browser?I tried below code to do the same .But it wont

Code:
hWnd = Browser("browser_name").GetROProperty("hwnd")
Window("hwnd:=" & hWnd).Maximize
Pls help out

Regards

Madhu


RE: Maximize browser? - Saket - 12-29-2009

what is the IE version?
This should work on IE6. if you are on IE8, use
Code:
Browser("Google").FullScreen
or
Window("regexpwndtitle:=Windows Internet Explorer","Text:=Google - Windows Internet Explorer").Maximize



RE: Maximize browser? - 1981.madhu@gmail.com - 12-29-2009

Hey Saket its working fine now .

Thank u .Close the thread .

Regards

Madhu