Hi Siba,
The following code may help you:
*Set
obj=description.Createobj("micclass").value="Browser"reqBrowserWindow="Google"
'Give your browser window nameSet childObjs=Desktop.ChildObjects(obj)For
i=0 to childObjs.count-1 strTitle=childObjs(i).getROProperty("title")
If instr(1,strTitle,reqBrowserWindow)>0 then print
childObjs(i).getROProperty("hwnd") end ifnext*
In this code, if you input the browser window name it will return you the
hwnd. For Ex. If you open Yahoo,Google,Facebook etc. the above code return
you the hwnd of Google.
Let me know if you need further inputs.
Thanks,
Uday
QTP Videos <http://www.youtube.com/user/AnemUday/videos>
On Wednesday, 11 December 2013 20:04:42 UTC+5:30, Mishra Siba Prasad wrote:
>
>
>
>
>
>
>
>
> *I know how to use "hwnd"But in my machine if i use "hwnd" in gmail, 1st
> page is working fine , but 2nd page is not working.Need the help form
> you.Kindly help me..Smiles,Siba.*
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.