Micro Focus QTP (UFT) Forums
help me to use regular expressions in Browser title - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: help me to use regular expressions in Browser title (/Thread-help-me-to-use-regular-expressions-in-Browser-title)



help me to use regular expressions in Browser title - penguinnoy - 06-09-2009

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


RE: help me to use regular expressions in Browser title - Tarik Sheth - 06-09-2009

Hi,

Try following.


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


RE: help me to use regular expressions in Browser title - yaseenarfath - 06-11-2009

Hi,

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

^ OTHER PAYMENT INQUIRY.*

Thanks,
Yaseen Arfath


RE: help me to use regular expressions in Browser title - penguinnoy - 06-15-2009

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


RE: help me to use regular expressions in Browser title - stephenlb4u - 06-15-2009

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


RE: help me to use regular expressions in Browser title - yaseenarfath - 06-15-2009

Hi,

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

^ OTHER PAYMENT INQUIRY.*

Thanks,
Yaseen Arfath