Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular expressions for webelement text
#1
Not Solved
Hi Ankur ,
On my webpage there is a webelement having text "Pre-Authorize Basic Loan Information(Write Access) - Exec Time: 497 ms -"
The last part of the string (497 ms -")changes always , say "540 ms -" , "650 ms -" depending on exec time . Rest of the string remains same. I want to write code :
Code:
If Browser().Page().Frame().Webelement("text:=Authorize Basic Loan Information(Write Access) - Exec Time:****
").Exist(10) Then
msgbox "Pass"
Else
msgbox "Fail"
End If
Please guide me how I can use regular expression here for the last part of string .

Is it possible to do it w/o using OR ?
Reply
#2
Not Solved
try with Exec Time:\d ms -" and let me know
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,151 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)