09-17-2012, 10:56 PM
I have just started learning QTP and wrote a below simple code :
What I am trying to do is
launching the IE and opening the www.google.com
Click on the Gmail link which is present on the google page itself.
When I am running the code the problem I am facing is two separate google page are getting open.
I just want to open one page and do my operation.
Thanks
Code:
Systemutil.Run "iexplore.exe","www.google.com"
Browser("Google").Page("Google").WebElement("Gmail").Click
launching the IE and opening the www.google.com
Click on the Gmail link which is present on the google page itself.
When I am running the code the problem I am facing is two separate google page are getting open.
I just want to open one page and do my operation.
Thanks