Micro Focus QTP (UFT) Forums
Regarding the Automation of Gmail Inbox - 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: Regarding the Automation of Gmail Inbox (/Thread-Regarding-the-Automation-of-Gmail-Inbox)



Regarding the Automation of Gmail Inbox - manoj12345 - 03-18-2010

Hi,
I have automate a scenario that open the gmail and login with the credentials and compose a mail to oneself and after that i check the inbox then it gives an error because let say

Before Composing the mail
Code:
browser("Gmail: Email from Google").Page("Gmail - Inbox (42)").Frame("v1").WebElement("Inbox (42)").Click

and after composing it and my inbox would be increase by 1.. that means Page class name should be Gmail-Inbox(43)

then how can i do that


RE: Regarding the Automation of Gmail Inbox - manishbhalshankar - 03-18-2010

Hi Manoj,
Use regularexpression instead of fixed property. Change Gmail-Inbox(43) to Gmail-Inbox.* from object properties.


RE: Regarding the Automation of Gmail Inbox - manoj12345 - 03-18-2010

Hi Manish,
It doesn't work. Can u pls elaborate.


RE: Regarding the Automation of Gmail Inbox - Saket - 03-19-2010

refer these threads

https://www.learnqtp.com/forums/Thread-Using-Regular-Expressions?highlight=inbox
https://www.learnqtp.com/forums/Thread-hi-need-help-regardign-regular-expression-on-gmail-windows?highlight=inbox


RE: Regarding the Automation of Gmail Inbox - manoj12345 - 03-19-2010

Hi Saket,
I have changed the Inbox(46) to Inbox.* and code has been written like that
Code:
browser("Gmail: Email from Google").Page("Gmail - Inbox.*").Frame("v1").WebElement("Inbox.*").Click

but it doesn't work


RE: Regarding the Automation of Gmail Inbox - kishore.gkk - 08-07-2010

Try this.
Code:
Browser("title:=Gmail.*").Page("title:=Gmail.*).Link("innertext:=Inbox.*").click -9999, -9999

I checked it, its working.

let me if you face any probelms.

Thanks
krish


RE: Regarding the Automation of Gmail Inbox - venkatbatchu - 08-07-2010

Hi Manoj,
Please refer these thread it may helpful to ur query.

https://www.learnqtp.com/forums/Thread-Using-Regular-Expressions?page=2&highlight=Inbox.%2A

Venkat.Batchu