Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regarding the Automation of Gmail Inbox
#1
Solved: 11 Years, 4 Months ago
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
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Manoj,
Use regularexpression instead of fixed property. Change Gmail-Inbox(43) to Gmail-Inbox.* from object properties.
Reply
#3
Solved: 11 Years, 4 Months ago
Hi Manish,
It doesn't work. Can u pls elaborate.
Reply
#4
Solved: 11 Years, 4 Months ago
refer these threads

https://www.learnqtp.com/forums/Thread-U...ight=inbox
https://www.learnqtp.com/forums/Thread-h...ight=inbox

Reply
#5
Solved: 11 Years, 4 Months ago
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
Reply
#6
Solved: 11 Years, 4 Months ago
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
Reply
#7
Solved: 11 Years, 4 Months ago
Hi Manoj,
Please refer these thread it may helpful to ur query.

https://www.learnqtp.com/forums/Thread-U...=Inbox.%2A

Venkat.Batchu
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to delete particular mails in Gmail using QTP rajkumarsm 1 4,181 10-06-2014, 07:03 PM
Last Post: rajkumarsm
  Delete Gmail email newqtp 4 4,747 07-05-2013, 02:12 PM
Last Post: Staff
  Total no of mail in gmail excellentpawan 2 3,157 07-05-2013, 01:56 PM
Last Post: Staff
  gmail signout dropdown thru DP zakshah.12 0 2,310 03-05-2013, 07:47 AM
Last Post: zakshah.12
  Gmail: Compose Mail Functionality kishore.gkk 5 9,884 02-15-2013, 08:39 AM
Last Post: newqtp

Forum Jump:


Users browsing this thread: 7 Guest(s)