Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive programming and Reg Expression
#1
Not Solved
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.

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
Thank you,
Sqadri
Reply


Messages In This Thread
Descriptive programming and Reg Expression - by sqadri - 01-20-2012, 10:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Descriptive PROGRAMMING sandeepm1989 0 2,092 01-21-2016, 11:46 AM
Last Post: sandeepm1989
  Is this one instance where descriptive programming does not work? chong67 10 7,123 10-09-2012, 06:41 PM
Last Post: harishshenoy
  Descriptive Programming By giving the description in form of the string arguments sia sharma 6 5,212 09-12-2012, 08:57 PM
Last Post: freeboynil
  Can you use Descriptive Programming with Checkpoint? chong67 4 8,631 06-27-2012, 10:29 AM
Last Post: sshukla12
  Can I use Descriptive Programming on Checkpoint? chong67 0 2,294 06-22-2012, 08:34 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 1 Guest(s)