Micro Focus QTP (UFT) Forums
script for opening mail in gmail - 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: script for opening mail in gmail (/Thread-script-for-opening-mail-in-gmail)



script for opening mail in gmail - sonalee - 05-03-2011

hello
i want to write script for opening a mail in gmail a/c
bt how to write for opening a mail
what i did is i wrote script till login & its running but how to write for now opening a mail
here is the script:

Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Browser("MSN India - Hotmail, News,").Page("MSN India - Hotmail, News,").Sync
Browser("MSN India - Hotmail, News,").Navigate("http://gmail.com")
Browser("MSN India - Hotmail, News,").Page("Gmail: Email from Google").WebEdit("Email").Set"xyz"
Browser("MSN India - Hotmail, News,").Page("Gmail: Email from Google").WebEdit("Passwd").SetSecure"****************"
Browser("MSN India - Hotmail, News,").Page("Gmail: Email from Google").WebButton("Sign in").Click
Browser("MSN India - Hotmail, News,").Page("Gmail - Inbox - sonalee.mehta1").Frame("c1phr99trghm4c")..???????????????
what will be the name of the frame,name of the link for opening mail

m using the add-ins which are there by default - vb,web,activeX
plz reply asap