Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help to capture the flight confirmation #
#1
Solved: 10 Years, 7 Months ago
Hi All,

I'm trying to capture this confirmation no from the Qtp demo flight application which is dynamcic .
"Flight Confirmation # 2014-05-16232612"
can some one please help me out here to capture this dynamic confirmation number with regular expression.


Thanks
Reply
#2
Solved: 10 Years, 7 Months ago
use regular expression Flight Confirmation.* in the object repository. Then use getROProperty("<<property holding this value>>"). The output of this is the entire string "Flight Confirmation # Dynamic number" .Now from this string, extract the number you want.Hint : Use mid function.
Reply
#3
Solved: 10 Years, 7 Months ago
Thanks Ravi for your reply. I used descriptive method with .* after # worked fine. I also use the mid function to just capture the flight no.

Thanks again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)