Micro Focus QTP (UFT) Forums

Full Version: Identifying new IE window using HWND
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I can't for the life of me figure out what I'm doing wrong here:
Code:
set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible=true
Browser("hwnd:=" & oIE.HWND).FullScreen

It gives me:
Quote:Cannot identify the object "[ Browser ]" (of class Browser). Verify that this object's properties match an object currently displayed in your application.

Anyone?
Hi,
try with the following code
Window("hwnd:=" & oIE.HWND).Maximize
Nope - same result!

Window("hwnd:="& oIE.HWND).Maximize
Should work for you
did you notice the difference in the below code....

Window("hwnd:=" & oIE.HWND).Maximize

it is working fine for me
Yes I had noticed both, but apparently messed something up. I cut & pasted and it does work.

Thanks for your help!