Micro Focus QTP (UFT) Forums
web objects Recognises as window objects while using DP - 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: web objects Recognises as window objects while using DP (/Thread-web-objects-Recognises-as-window-objects-while-using-DP)



web objects Recognises as window objects while using DP - Poornima - 04-25-2011

Code:
Set objExplorer=createobject("InternetExplorer.Application")
objExplorer.visible=True
wait 10
objExplorer.Navigate("www.gmail.com") '// Navigate to the Easel URL
hwndval=objExplorer.hwnd '// Retrieving handler value for browser
window("hwnd:="&hwndval).Maximize '// Window Maximize

After running above script in qtp, in the same script if i record the steps for login of gmail or anything other steps of gmail, its not getting recorded.

There are few lines below the script what we do in gmail. Those web objects are recognised as win objects in qtp. scripts stops running.
objspy -> recognises gmail as winobj

Note: QTP 9.2 seatlicense


RE: web objects Recognises as window objects while using DP - manabh - 04-25-2011

Are you using previously opened browser or opening new browser while each recording session?