Micro Focus QTP (UFT) Forums
Error in below code snippet - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Error in below code snippet (/Thread-Error-in-below-code-snippet)



Error in below code snippet - nilanjans - 06-11-2013

hi all,

What's wrong in below code snippet, it shows me error like General run error.

Line (1): "Hwnd = Browser("Google").object.HWND".

My code is :

Code:
Hwnd = Browser("Google").object.HWND
Object.WebEdit("q").click

Window("hwnd:=" & Hwnd).Type "Typing text"

Please help me out asap.

Regards,
Nilanjan.


RE: Error in below code snippet - basanth27 - 06-11-2013

The issue is,
Code:
Object.WebEdit("q").click

What object is this and where is it defined?