03-04-2014, 09:45 PM
(This post was last modified: 03-04-2014, 09:52 PM by nidhitaneja.)
Hello I am new to QTP and I am trying to open Gmail, loginto my acct and send email to someone. I am not using OR and writing script in Expertview. Script is working fine but it is not clicking on Compose even though I have tried all different properties I got from Object Spy. Please help and below is my script without my email.
Quote:'Sending myself Email
Systemutil.Run("iexplore.exe"),"www.gmail.com"
Browser("name:=Gmail").Page("title:=Gmail").WebEdit("name:=Email").Set"qualityassurance6"
Browser("name:=Gmail").Page("title:=Gmail").WebEdit("name:=Passwd").Set"autooooooooo"
Browser("name:=Gmail").Page("title:=Gmail").WebButton("name:=Sign in").Click
Browser("name:=Inbox \(11\) - qualityassurance6@gmail\.com - Gmail").Page("title:=Inbox \(11\) - qualityassurance6@gmail\.com - Gmail").Sync
Browser("name:=Inbox \(11\) - qualityassurance6@gmail\.com - Gmail").Page("title:=Inbox \(11\) - qualityassurance6@gmail\.com - Gmail").WebElement("innertext:=Compose").Click