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
#2
Not Solved
Have you tried executing the code? What error/challanges are you facing?
Reply
#3
Not Solved
Hi Ankesh,

No I have not tried it yet but I will and let you know.

Thanks,
Sqadri
Reply
#4
Not Solved
what's the pattern of name?give some examples
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Descriptive PROGRAMMING sandeepm1989 0 2,126 01-21-2016, 11:46 AM
Last Post: sandeepm1989
  Is this one instance where descriptive programming does not work? chong67 10 7,244 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,347 09-12-2012, 08:57 PM
Last Post: freeboynil
  Can you use Descriptive Programming with Checkpoint? chong67 4 8,747 06-27-2012, 10:29 AM
Last Post: sshukla12
  Can I use Descriptive Programming on Checkpoint? chong67 0 2,326 06-22-2012, 08:34 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 1 Guest(s)