Use Description. create method.
Set obj = Description.Create()
Obj("micclass").Value= "WebElement"
Obj("html tag").Value= "EMBED"
Obj("outerhtml").Value= ".*embed name."
//give more properties ...
Set Obj1=Browser("AAA").Page("ABC").chidobject(Obj)
scount=Obj1.count // if the value is zero then tryto give or change the
property and its value above
for i = 1 to scount
sname=Obj1(i).getroproperty("innertext") // give some ther property also
if ucase(sname)=Ucase("name that you are looking for") then
Obj1(i).Highlight
Obj1(i).click
end if
next
On Wednesday, August 24, 2016 at 11:24:10 PM UTC+2, [email protected]
wrote:
>
> if (Browser("AAA").Page("ABC").WebElement("html tag:=EMBED",
> "outerhtml:=<embed
> name.*", "index:=1").Exit(10)) Then
>
> Browser("AAA").Page("ABC").WebElement("html tag:=EMBED",
> "outerhtml:=<embed
> name.*", "index:=1").Click
>
> End if
>
>
> Please Help!
>
--
--
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/d/optout.