01-20-2012, 10:06 PM
Hi,
I am trying to read text in a link which is dynamic and mixture of characters and digits. I ma trying to do the following but I am not sure if it will work. Could you please help me with this.
Thank you,
Sqadri
I am trying to read text in a link which is dynamic and mixture of characters and digits. I ma trying to do the following but I am not sure if it will work. Could you please help me with this.
Code:
Set ObjectDes = Description.Create
ObjectDes("micclass").Value = "Link"
ObjectDes("html tag").Value = "A"
ObjectDes("name").Value =" \w+\w+\s+\w+\w+\s+\w+\d+\d+\d+\d"
Set myLink = Page.ChildObjects(ObjectDes)
LinkCount = myLink.Count
For n=0 To LinkCount-1
Set CoverageCode = myLink(n).GetROProperty("name")
Print CoverageCode
Next
Sqadri