Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open mails from Gmail inbox using selenium webdriver using java

I need to open mails from Gmail inbox using selenium webdriver using java in Eclipse IDE. Is there a way to do this using xpath?

like image 461
Binu Avatar asked Feb 26 '26 05:02

Binu


1 Answers

The ideal way would be to not use selenium to automate gmail but rather use the Gmail API (https://developers.google.com/gmail/api/#how_do_i_find_out_more) to verify the message was successfully sent. If you do not want to learn how to check the messages at the API level I would highly recommend using the HTML version of gmail using this link as the initial url for gmail (https://mail.google.com/mail/?ui=html) using gmail with javascript enabled will make it much harder to have a reliable test script.

like image 62
sonhu Avatar answered Feb 28 '26 17:02

sonhu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!