need help 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: need help to use regular expressions in Browser title (/Thread-need-help-to-use-regular-expressions-in-Browser-title) |
need help to use regular expressions in Browser title - snikam - 02-18-2009 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 RE: need help to use regular expressions in Browser title - newqtp - 02-25-2009 Can you tell where exactly you browser title is changing by seeing this, hard to tell. RE: need help to use regular expressions in Browser title - snikam - 02-25-2009 hi, the values e.g. 01 or 1 changes in the title bar Browser A1 \(6\.1\.01\) - Login RE: need help to use regular expressions in Browser title - VENKATAREDDY_M - 03-04-2009 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" RE: need help to use regular expressions in Browser title - ashfaqdhanakwala - 03-24-2009 hi All, Please Use only Browser A1.* Nothing else required. Thanks & Regards, Ashfaq |