Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to maximize a browser in QTP
#4
Solved: 10 Years, 9 Months, 3 Weeks ago
You can also launch the browser with SystemUtil or a WScript.Shell and specify the window state when opened (along with the startup URL). 3 = maximized.

Quote:SystemUtil.Run "iexplore.exe", "www.google.com", , , 3
Browser("micclass:=Browser").Sync

Quote:Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.Run "iexplore.exe about:blank", 3, False
Browser("micclass:=Browser").Sync
Set wsh = Nothing
Reply


Messages In This Thread
how to maximize a browser in QTP - by reejais - 09-17-2010, 05:15 PM
RE: how to maximize a browser in QTP - by reejais - 09-30-2010, 03:05 PM
RE: how to maximize a browser in QTP - by cdesserich - 10-01-2010, 01:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximize and Close a Browser mv8167 4 16,088 03-26-2023, 03:55 PM
Last Post: Mike B
  error object disabled on line 9 where it says " Browser("Browser").CloseAllTabs" kp_usa 1 3,132 12-20-2012, 12:20 AM
Last Post: adityapant27
  My IE Browser Recognizing as Window instead of Browser. sivakrishna 4 8,711 02-11-2012, 12:19 AM
Last Post: ravi.gajul
  Clicking an item in the context menu opens up browser(IE6) but in same browser of QC pjavvaru 2 4,253 04-10-2010, 02:16 AM
Last Post: jsknight1969
  Maximize browser? 1981.madhu@gmail.com 2 8,811 12-29-2009, 12:14 PM
Last Post: 1981.madhu@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)