Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Maximize and Close a Browser
#5
Solved: 10 Years, 9 Months, 1 Week ago
[quote pid='19664' dateline='1326799441']
Code:
I had a General Run error when trying to get
hWnd = Browser("hwnd:=" & hWnd).Object.hWnd

In another forum I came across this code: (automationrepository)
and it worked without getting to the .Object.hWnd
Hope it might help someone.
hwnd = Browser("CreationTime:=0"").GetROProperty("top_level_hwnd")
Window("hwnd:=" & hwnd).Maximize


Regards,
Mike




[/quote]
Reply


Messages In This Thread
Maximize and Close a Browser - by mv8167 - 01-13-2012, 08:36 PM
RE: Maximize and Close a Browser - by vinod123 - 01-17-2012, 04:12 PM
RE: Maximize and Close a Browser - by Mike B - 03-26-2023, 03:55 PM
RE: Maximize and Close a Browser - by mv8167 - 01-18-2012, 03:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Close popup ad windows dustwynn 1 2,758 10-25-2016, 05:57 PM
Last Post: Ankur
  [UFT] Close opened folder robertosalemi 1 3,164 02-10-2016, 07:06 PM
Last Post: robertosalemi
  Close browser code not working akilamurugesh 1 4,471 08-26-2014, 03:21 PM
Last Post: vinod123
  Close on Exit Issue in QTP 11.0 EGBELL 1 3,070 02-02-2014, 03:39 PM
Last Post: EGBELL
  Unable to close new tab pradeep singh 3 8,753 03-05-2013, 09:43 AM
Last Post: pradeep singh

Forum Jump:


Users browsing this thread: 1 Guest(s)