Selenium Assignment – 9 – Number of emails in a your gmail Account
In this next assignment, we will be practicing writing dynamic xpath and table handling.
- Open a browser of your choice say Mozilla Firefox using Gecko Driver
- Navigate to Gmail (https://www.gmail.com)
- Login to your Gmail with correct credentials.
- Verify that by default “Primary” section is selected.
- If not click on the Primary tab.
- Get the count of the total number of emails in the Primary tab.
- Get the name of the sender and subject of Nth Email of your inbox.
- Write a method to get the name of the sender and subject of email of your inbox.
Please refer below screenshot for the same.
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 firstname.lastname@example.org. We will be back soon with next assignment.
Till then, Keep Learning 🙂