Micro Focus QTP (UFT) Forums

Full Version: Login page run by QTP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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 ..
Hi,
If you are using RegExp Object, pls use below Pattern

RegEx.Pattern = Inbox\("[\d].*\)"

Thanks
VENKATA