Automate Amazon Website 'Menu links' using Selenium
This assignment helps you learn those Selenium commands which are useful in clicking on links and navigate to different pages. It is the most usual thing testers do. By automating this assignment, you will verify that, clicking on menu links landing users on correct web pages. I am assuming that you have already gone through Assignment 1 and aware of basic commands of Selenium.
Try to automate all the 3 test cases shared in this post, the more you practice more you get confidence.
Assignment Level - Beginner
Test Case 1 - Automate first Menu link of amazon.in and print page title
Steps to Automate:
1. Launch browser of your choice say., firefox, chrome etc.
2. Open this URL - www.amazon.in
Test Case 2 - Automate all the Menu links of techlistic.com
Steps to Automate:
1. Launch browser of your choice say., firefox, chrome etc.
2. Open this URL - https://www.techlistic.com/
Test Case 3 - Automate all the Menu links of amazon.in and Verify page titles
Steps to Automate:
1. Launch browser of your choice say., firefox, chrome etc.
2. Open this URL - www.amazon.in
8. Get Page title and verify it with expected value.
9. Repeat steps 5 to 8 for other menu links.
10. Close the browser.
Try to automate all the 3 test cases shared in this post, the more you practice more you get confidence.
Assignment Level - Beginner
Test Case 1 - Automate first Menu link of amazon.in and print page title
Steps to Automate:
1. Launch browser of your choice say., firefox, chrome etc.
2. Open this URL - www.amazon.in
3. Maximize or set size of browser window.
4. Get the page title and print it.
4. Get the page title and print it.
5. Now, click on first menu link say 'Amazon Pay' (or choose any other link from the menu list)
6. Get the page title and print it.
6. Get the page title and print it.
7. Navigate back to Home Page.
8. Get the page title and print it. Verify that value matches with output of point no. 4
8. Get the page title and print it. Verify that value matches with output of point no. 4
9. Close the browser.
Test Case 2 - Automate all the Menu links of techlistic.com
Steps to Automate:
1. Launch browser of your choice say., firefox, chrome etc.
2. Open this URL - https://www.techlistic.com/
3. Maximize or set size of browser window.
4. Click on 'Java Tutorial' link and validate page title.
5. Navigate back to Home Page.
6. Click on 'Selenium Tutorial' link and validate page title.
7. Navigate back to Home Page.
8. Click on 'Selenium Blogs' link and validate page title.
9. Navigate back to Home Page.
10. Click on 'TestNG Blogs' link and validate page title.
11. Close the browser.
Test Case 3 - Automate all the Menu links of amazon.in and Verify page titles
Steps to Automate:
1. Launch browser of your choice say., firefox, chrome etc.
2. Open this URL - www.amazon.in
3. Maximize or set size of browser window.
4. Get the page title and print it.
5. Click on first menu link, say 'Amazon Pay'.
6. Get Page title and verify it with expected value.
7. Navigate back to Home Page.
9. Repeat steps 5 to 8 for other menu links.
10. Close the browser.
If you need any help to automate above assignments, then check the reference links:
Assignment 1 - Automate Browser Actions << Previous | Next >> Assignment 3 - Automate About Me Form
Follow Us
Feel free to ask queries or share your thoughts in comments or email us.
Comments
Post a Comment