Micro Focus QTP (UFT) Forums

Full Version: help me to use regular expressions in Browser title
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,

I am working on a web application, i have problem with the Browser title i am try to make it regular expression

Browser
OTHER PAYMENT INQUIRY : RECEIPT NO.( 03027420491200000201 )
-> 03027420491200000201 will varied

I try to make
OTHER PAYMENT INQUIRY : RECEIPT NO\.\( \d[0-9] \)
and
OTHER PAYMENT INQUIRY.*

it not work, Can you please help me ?

Kamonwan
Hi,

Try following.


OTHER PAYMENT INQUIRY : RECEIPT NO.\.\(\s \d\s \)
or
OTHER PAYMENT INQUIRY : RECEIPT NO.\.\(\s \num\s \)
Hi,

Try this following Reg Exp if the Browser name starts with Name OTHER PAYMENT INQUIRY.

^ OTHER PAYMENT INQUIRY.*

Thanks,
Yaseen Arfath
Thank you, every body
I try
OTHER PAYMENT INQUIRY : RECEIPT NO\.\( [0-9]{1,} \)
Hi Kamonwan,

While using the browser title as regular expression, you should go for DP. Use the below script


Code:
browser("title := OTHER PAYMENT INQUIRY.*).Page("title := OTHER PAYMENT INQUIRY.*)

Stephen
Hi,

Try this following Reg Exp if the Browser name starts with Name OTHER PAYMENT INQUIRY.

^ OTHER PAYMENT INQUIRY.*

Thanks,
Yaseen Arfath