Selenium Assignment – 8 – Sending a mail from Gmail

In this assignment, we will be practicing writing dynamic xpath and the scenario is login to Gmail Account and send an email.


  • Open any browser of your choice, say Mozilla Firefox
  • Navigate to

selenium assignment gmail login

  • Enter a valid Email Id or Phone Number
  • Click Next button

selenium assignment gmail login

  • Enter Password and click “Sign in” button.
  • Verify that gmail is logged in successfully.
  • Click compose button and verify that a new mail window is opened.

Selenium Assignment - login to gmail

  • Enter Email Id say “”
  • Enter some subject, say “Test Mail”
  • Enter some text in body


  • click send button.

Try this scenario and send us the code for feedback and assessment, or if you have any questions, queries or comments. Feel free to write us We will be back soon with next assignment.

Till then, Keep Learning 🙂

Saurabh Dhingra

About the Author

Saurabh Dhingra

Follow Saurabh Dhingra: