Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help to use regular expressions in Browser title
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Can you tell where exactly you browser title is changing by seeing this, hard to tell.
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
hi,

the values e.g. 01 or 1 changes in the title bar
Browser A1 \(6\.1\.01\) - Login
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
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"
Reply
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
hi All,

Please Use only
Browser A1.*

Nothing else required.


Thanks & Regards,
Ashfaq
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
At Regular Expressions for e-mail address ganesh.dengale 6 19,154 08-23-2022, 02:51 PM
Last Post: ahmad3029
  How to disable regular expressions in a text? ttralor 6 6,709 07-05-2013, 02:44 PM
Last Post: Staff
  Need help on using regular expressions on Java Window's title qa_tester 3 5,050 02-13-2012, 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 4,211 02-13-2012, 10:55 PM
Last Post: madsenfr
  Process to use Regular Expressions in QTP using screen shots. yvslraotesting@gmail.com 1 3,496 01-31-2012, 12:45 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)