Hi,
dim l,wb,i
set oDesc=description.create
set elem=Browser().page().childobjects(oDesc)
Elements=elem.count()
for i=0 to Elements-1
var =elem(i).GetRoproperty("Classname")
Select Case var
Case "Link"
l=l+1
var2=elem(i).getRoproperty("text")
Case "Image"
i=i+1
var1=elem(i).getRoproperty("src")
Case "WebButton"
wb=wb+1
var0=elem(i).GetRoproperty("webedit")
Case Else
End select
Next
msgbox "links" &l,&var2 "images" &i,&var1 "webbuttons" &wb,&var0
If anything wrong correct me!
Regards,
koteshwar.
On Mon, Jan 18, 2010 at 11:02 AM, venkata koduri
<[email protected]>wrote:
> Hi,
>
> How can we retrieve all web elements with names in a web page.
>
> Pls help me..
>
> --
> Regards..
> Venkat
>
> --
> 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]<mercuryqtp%[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
"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