03-02-2010, 05:14 PM
Hi,
My name is Hemant. I just started learning the QTP tool.
Actually I am trying to record a web application.
I just recorded a script for login to the gmail and logout.
I am facing some problems in the below line.
Here the value 28635 changes dynamically and the frame "czecrpgao5tpb" name changes dynamically whenever we log on to the gmail.
So these objects are not recognised by QTP and I am not able to log out.
I tried using regular expressions in "Expert View" window pane but it's not working.
How to handle such situations in which the name of the object changes dynamically?
Thanks and Regards,
Hemant Kumar
My name is Hemant. I just started learning the QTP tool.
Actually I am trying to record a web application.
I just recorded a script for login to the gmail and logout.
I am facing some problems in the below line.
Code:
Browser("Gmail: Email from Google").Page("Gmail - Inbox (28635)").Frame("czecrpgao5tpb").Link("Sign out").Click
Here the value 28635 changes dynamically and the frame "czecrpgao5tpb" name changes dynamically whenever we log on to the gmail.
So these objects are not recognised by QTP and I am not able to log out.
I tried using regular expressions in "Expert View" window pane but it's not working.
How to handle such situations in which the name of the object changes dynamically?
Thanks and Regards,
Hemant Kumar