Micro Focus QTP (UFT) Forums

Full Version: Urgent help with Gmail Sending mail feature
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
When you are running your script, do you have 11 emails as unread?...
Change browser and page object properties to identify it every time..
So if I change properties of Browser and Page, that will let the Compose button work ? Because I didn't have much to chose from when it came to Page properties so picked same. Please help further, thanks.