Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login page run by QTP
#1
Not Solved
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
Reply
#2
Not Solved
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 ..
Reply
#3
Not Solved
Hi,
If you are using RegExp Object, pls use below Pattern

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

Thanks
VENKATA
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)