Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with using Regular expressions - particularly caret
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
I have two links on the page with the same text and href. But the class property is different.
I was trying to use the caret to match only the beginning of the class(which is a long string with alphanumeric characters, spaces,and hyphens). It starts with zz1 for the link that I want to use.
But it is not working.
I tried this:
Code:
Browser("xyz").Page("url:=http://xyz").Link("html tag:=A", "text:=Projects", "class:=^zz1").Click
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
I don't see any problem with the above expression... may be some other issue

You can check your regular expression at http://www.nvcc.edu/home/drodgers/ceu/re...regexp.asp
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
At Regular Expressions for e-mail address ganesh.dengale 6 18,506 08-23-2022, 02:51 PM
Last Post: ahmad3029
  How to disable regular expressions in a text? ttralor 6 6,152 07-05-2013, 02:44 PM
Last Post: Staff
  Need help on using regular expressions on Java Window's title qa_tester 3 4,815 02-13-2012, 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 4,030 02-13-2012, 10:55 PM
Last Post: madsenfr
  Process to use Regular Expressions in QTP using screen shots. yvslraotesting@gmail.com 1 3,309 01-31-2012, 12:45 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)