Automate Browser Actions on Godaddy.com using Selenium

If you are a beginner in automation testing and looking forward to write your first Selenium code, then this post is the best destination for you. This assignment will teach you the basic commands of Selenium Webdriver to perform basic actions like., Launch browser, maximize browser window, validate page title and close browser.

In this post, you will find very basic step by step assignments which will upgrade your understanding about Selenium Webdriver and it's commands.




Assignment Level - Beginner

Test Case 1 - Launch browser and Open Godaddy.com

Steps to Automate:
1. Launch browser of your choice say., Firefox, chrome etc.
2. Open this URL - https://www.godaddy.com/
3. Close browser.


Test Case 2 - Open Godaddy.com and maximize browser window.

Steps to Automate:
1. Launch browser of your choice say., Firefox, chrome etc.
2. Open this URL - https://www.godaddy.com/
3. Maximize or set size of browser window.
4. Close browser.


Test Case 3 - Open Godaddy.com and Print it's Page title.

Steps to Automate:
1. Launch browser of your choice say., Firefox, chrome etc.
2. Open this URL - https://www.godaddy.com/
3. Maximize or set size of browser window.
4. Get Title of page and print it.
5. Close browser.


Test Case 4 - Open Godaddy.com and Print current url.

Steps to Automate:
1. Launch browser of your choice say., Firefox, chrome etc.
2. Open this URL - https://www.godaddy.com/
3. Maximize or set size of browser window.
4. Get URL of current page and print it.
5. Close browser.


Test Case 5 - Open Godaddy.com and Print Page source.

Steps to Automate:
1. Launch browser of your choice say., Firefox, chrome etc.
2. Open this URL - https://www.godaddy.com/
3. Maximize or set size of browser window.
4. Get Page source and print it.
5. Close browser.


Now is the time to automate a consolidated and final assignment.


Test Case 6 - Open Godaddy.com and Validate Page Title

Steps to Automate:
1. Launch browser of your choice say., Firefox, chrome etc.
2. Open this URL - https://www.godaddy.com/
3. Maximize or set size of browser window.
4. Get Title of page and validate it with expected value.
5. Get URL of current page and validate it with expected value.
6. Get Page source of web page.
7. And Validate that page title is present in page source.
8. Close browser.

Try writing program for above assignments and execute. If  you find any difficulty in writing code for above assignments, you can refer following link for help:

Next  >>  Assignment 2 - Automate Amazon.com's 'Menu links' 



Follow Us

Quora Space | Facebook Page | Telegram Channel
Feel free to ask queries or share your thoughts in comments or email us.

Comments

  1. Hello sir,
    In above assignment mentioned the validat the title...then can we use here soft assert?
    If no then when we use soft in code..pls explt me

    ReplyDelete

Post a Comment

Popular posts from this blog

10 Best Demo Websites for Automation Testing Practice

Automate 'User Registration' of E-commerce Website using Selenium

Selenium WebDriver Browser and Navigation Commands

Automate 'Buy Product' from E-commerce Website using Selenium