Share
Go down
rajina
Posts : 1
Join date : 2011-02-17

Selenium test for Gmail compose mail

on Tue Mar 01, 2011 5:11 pm
Hello,

Can anyone help me execute test for gmail compose mail. I tried many xpaths but no luck.

Thanks
avatar
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: Selenium test for Gmail compose mail

on Tue Mar 01, 2011 8:53 pm
Hi,

In Gmail they used lots of ajax control and frames in which element is embedded. so you have to find which element is present in which frame.

After that set focus on that frame and then click on that element.This will give you lots of challenges.

use the selectFrame commands and see will they work or not, probably you have to use fireEvent also if select frame will not work.

try both of the options and let's see. Best of luck.

Bye
mckiranlieutenant007@gmai
Posts : 4
Join date : 2013-04-22

Re: Selenium test for Gmail compose mail

on Wed May 08, 2013 2:34 pm
This is the simple selenese code:

Code:
open | /mail/u/0/?shva=1#inbox?compose=new |
click | class=aoD hl |
type | //table/tbody/tr[1]/td[2]/div/div/textarea | McKiran@example.com
type | name=subjectbox | Test
type | class=editable LW-avf |Hi All<br/>Hope the test is successful. <br/><br/><i> Lovingly, </i></br><b>McKiran.</b>
click | class=T-I J-J5-Ji aoO T-I-atl L3 |
Detailed post can be found at http://www.seleniumhq.in/2013/04/automatically-login-to-gmail-and-send.html
Sponsored content

Re: Selenium test for Gmail compose mail

Back to top
Permissions in this forum:
You cannot reply to topics in this forum