Micro Focus QTP (UFT) Forums
Urgent help with Gmail Sending mail feature - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Urgent help with Gmail Sending mail feature (/Thread-Urgent-help-with-Gmail-Sending-mail-feature)



Urgent help with Gmail Sending mail feature - nidhitaneja - 03-04-2014

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



RE: Urgent help with Gmail Sending mail feature - guin.anirban - 03-05-2014

When you are running your script, do you have 11 emails as unread?...
Change browser and page object properties to identify it every time..


RE: Urgent help with Gmail Sending mail feature - nidhitaneja - 03-05-2014

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.