Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using Regular Expressions in OR
#1
Not Solved
Hi
I am currently using QTP 9.2 to test a web application developed using TIBCO graphical interface.
Most of the objects are being identified as WebElements. I would like to use the outerhtml property value to identify the objects.
The outerhtml has a long list of details within.
Eg: <SPAN>yfgeryhferfcuhuehufhehf label="test".dewhdhewdewdh label="test2".....label="test3".... label="test"....

I would like to verify the FIRST occurence of label within the string as the label differs for every object. I tried using the below syntax within the OR for the outerhtml property.
1> .*.label=\"test\".*
2> .*.label=&chr(34)&"test"&Chr(34).*
Can you please let me know the correct syntax for the same.
Sad

Regards,
Sushma
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)