Login page run by QTP - 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: Login page run by QTP (/Thread-Login-page-run-by-QTP) |
Login page run by QTP - vaigundamoorthy - 01-29-2009 Hi All, I am trying to yahoo login with different user name and password. But I could not execute. Steps what I did. 1. Enter user name, password Click OK button. 2. Go to next page click Inbox( ) 3. Click sign out. The same above steps i did for different user. In this scenario step 2, Inbox( ) values is differ for each user. Could you please help How can i write the script for this scenario. For example : My used id moorthy . My unreadable in box msg shows Inbox (25) . This value is differ from each user. Mine also this is value is incread or decreaed if i open the inbox mail or geeting new mail RE: Login page run by QTP - sreekanth chilam - 01-29-2009 Hi Moorthy, For Handling the varying text string values we have to use Regular expressions in QTP. Apply regular expression for "Inbox()" Link text/innertext property(i.e inbox(123) --> inbox.*) & even for the page title property too ..if it is also varying dynamically. Try from your end & see.....It will work .. RE: Login page run by QTP - VENKATAREDDY_M - 02-11-2009 Hi, If you are using RegExp Object, pls use below Pattern RegEx.Pattern = Inbox\("[\d].*\)" Thanks VENKATA |