Micro Focus QTP (UFT) Forums
QTP: code is not working as expected - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP: code is not working as expected (/Thread-QTP-code-is-not-working-as-expected)



QTP: code is not working as expected - mahi392 - 09-17-2012

I have just started learning QTP and wrote a below simple code :

Code:
Systemutil.Run  "iexplore.exe","www.google.com"

Browser("Google").Page("Google").WebElement("Gmail").Click
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