![]() |
|
Identifying new IE window using HWND - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Identifying new IE window using HWND (/Thread-Identifying-new-IE-window-using-HWND) |
Identifying new IE window using HWND - Archens - 03-03-2012 I can't for the life of me figure out what I'm doing wrong here: Code: set oIE = CreateObject("InternetExplorer.Application")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? RE: Identifying new IE window using HWND - Sathiya - 03-05-2012 Hi, try with the following code Window("hwnd:=" & oIE.HWND).Maximize RE: Identifying new IE window using HWND - Archens - 03-05-2012 Nope - same result! RE: Identifying new IE window using HWND - rkkumar - 03-06-2012 Window("hwnd:="& oIE.HWND).Maximize Should work for you RE: Identifying new IE window using HWND - Sathiya - 03-07-2012 did you notice the difference in the below code.... Window("hwnd:=" & oIE.HWND).Maximize it is working fine for me RE: Identifying new IE window using HWND - Archens - 03-08-2012 Yes I had noticed both, but apparently messed something up. I cut & pasted and it does work. Thanks for your help! |