Automating Gmail

75 views
Skip to first unread message

Pratibha Chaurasia

unread,
Jan 20, 2018, 8:23:05 AM1/20/18
to Selenium Users
Hi, I am trying to automate the gmail test case for sending mail and not able to automate compose button.

Please help.

Thanks

Shawn McCarthy

unread,
Jan 20, 2018, 11:26:51 AM1/20/18
to Selenium Users
Do you work for Google? If not, then you probably don't need to automate gmail. You can use the mail libraries for your language to read and send emails.

Ripon Al Wasim

unread,
Jan 22, 2018, 1:03:13 AM1/22/18
to seleniu...@googlegroups.com
You can use the following java code to click COMPOSE:

driver.findElement(By.xpath("//div[@id=':hl']/div/div")).click();

OR,

driver.findElement(By.xpath("//div[@class='T-I J-J5-Ji T-I-KE L3 T-I-JW T-I-JO']"));

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/19fbd5e3-158d-49fb-8a92-13d2fb798c43%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ripon Al Wasim

unread,
Jan 22, 2018, 1:03:59 AM1/22/18
to seleniu...@googlegroups.com
driver.findElement(By.xpath("//div[@class='T-I J-J5-Ji T-I-KE L3 T-I-JW T-I-JO']")).click();

On Mon, Jan 22, 2018 at 12:02 PM, Ripon Al Wasim <ripona...@gmail.com> wrote:
You can use the following java code to click COMPOSE:

driver.findElement(By.xpath("//div[@id=':hl']/div/div")).click();

OR,

driver.findElement(By.xpath("//div[@class='T-I J-J5-Ji T-I-KE L3 T-I-JW T-I-JO']"));
On Sat, Jan 20, 2018 at 10:26 PM, Shawn McCarthy <shawn.m...@gmail.com> wrote:
Do you work for Google? If not, then you probably don't need to automate gmail. You can use the mail libraries for your language to read and send emails.

On Saturday, January 20, 2018 at 6:23:05 AM UTC-7, Pratibha Chaurasia wrote:
Hi, I am trying to automate the gmail test case for sending mail and not able to automate compose button.

Please help.

Thanks

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages