Micro Focus QTP (UFT) Forums

Full Version: need help 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.
Hi All,

I am working on a web application, i am facing problem with the Browser title it changes in every release so i have used title property and try to make it regular expression through OR.

It has created as below
Browser A1 \(6\.1\.01\) - Login

and my browser title is as below
Browser A1 (6.1.01) - Login

It is working but it takes too much time and writes warning messages in reports regarding the smart identification.

Can you please help me to understand what is wrong in above regular expression?

Thanks,
Sachin
Can you tell where exactly you browser title is changing by seeing this, hard to tell.
hi,

the values e.g. 01 or 1 changes in the title bar
Browser A1 \(6\.1\.01\) - Login
Hi snikam,
You can use below Regular Expression.
Code:
"Browser A1 \(6\.\d?\d\.0[1-9]\) - Login"

Considered that 01 will always be in the range 01 to 09
If 0 also changes then use below Expression
Code:
"Browser A1 \(6\.\d?\d\.\d[1-9]\) - Login"
hi All,

Please Use only
Browser A1.*

Nothing else required.


Thanks & Regards,
Ashfaq