Automate GoDaddy.com Features with Selenium WebDriver

This post contains two assignments which helps you to learn selenium  browser commands. These are the simplest assignments. So, this assignment post is the best suited to start your automation tester journey.

1. Automate Browser Actions on GoDaddy.com with 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.

1. Test Case - 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.

2. Test Case - 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.
4. Get URL of current page and print it.
5. Close browser.

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

3. Test Case - 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:

2. Automate GoDaddy.com website menu links with Selenium

Let's learn to automate the menu links of godaddy.com with Selenium and Java. We'll write the Selenium script in such a way where it will click on every menu link one by one and validate it's title.

1. Test Case - Automate the first menu link of godaddy.com with Selenium.

Steps to Automate:
1. Launch browser of your choice like, firefox, chrome etc., using selenium webdriver.
2. Open website url - https://godaddy.com/


3. Maximize browser window.
4. Set timeout using implicit wait command of Selenium Webdriver.
5. Click on the first menu link, which is 'Domains'. It will open up a sub-menu, click on the 'Domain Name Search' link from the sub-menu.


6. Now, we'll get the value of the Page title manually before automating, just to know what should be the expected out put of our script. Following are the steps to automate it:
  • Right click on Domain Name Search page and click on 'Inspect' option.
  • It'll open up the html viewer of that page.
  • Under the 'Elements' tab, search for "<head>" tag and if you find it. Then search for "<title>" tag.
  • Copy the text written inside pair of "<title> and </title>" tags.
  • In the following pic, value of the title is "Domain Name Search | Check Domain Availability - GoDaddy IN". This is should be our expected value.


7. Get the value of title of 'Domain Name Search' page using Selenium Webdriver's command in your script and print it.
8. We already know the expected value, we'll match value fetched in step 7 with our expected value, if it matches print pass either fail.

2. Test Case - Automate all the menu links of godaddy.com with Selenium.

Steps to Automate:
1. Launch browser of your choice like, firefox, chrome etc., using selenium webdriver.
2. Open website url - https://godaddy.com/
3. Maximize browser window.
4. Set timeout using implicit wait command of Selenium Webdriver.
5.Click on the first link from the menu, it will open up the sub-menu with multiple sub-menu links.
6. Click on the first sub-menu link.
7. Get the page title and validate it.
8. Go back to the home page by clicking on the GoDaddy logo.
9. Repeat the steps 5 to 8 and cover all the menu and sub-menu items present one by one.

Refer following links for automating above scenarios:

3. Automate 'Domain Name Search' of  GoDaddy.com with Selenium

In this section of automation assignment, we'll automate the most important feature of godaddy.com which is domain name search.

1. Test Case - Search domain name and validate that domain is available or not.

Steps to Automate:
1. Launch browser of your choice like, firefox, chrome etc., using selenium webdriver.
2. Open website url - https://godaddy.com/
3. Maximize browser window.
4. Set timeout using implicit wait command of Selenium Webdriver.
5. Click on the first menu link, which is 'Domains'. It will open up a sub-menu, click on the 'Domain Name Search' link from the sub-menu.
6. Get the value of title of 'Domain Name Search' page using Selenium Webdriver's command in your script and print it.
7. We'll match value fetched in step 7 with expected value, if it's matched then proceed to next step either failed the test case.
8. Verify that search box is present on the page and it's enabled by using selenium commands.
9. Verify that "Buy It" button is available along with search box.
10. Enter some test value in the search box, like "mydomain" and click on "Buy It" button.
11. If domain is available then verify that "Add to Cart" button is present alongside domain name.
12. Verify that price of the domain is also displaying alongside domain name.


Refer following posts for automating the above scenario:
Next  >> Assignment 2 - Automate Selenium Practice "About Me" Form

Follow Us

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

Comments

  1. This information is so useful and informative which you have shared here. It is beneficial for beginners to develop their knowledge. It is very gainful information. Thanks for sharing web design company in pune.

    ReplyDelete
  2. I agree with a lot of the points you made in this article. If you are looking for the best web development company in jodhpur, then visit Digital Suncity. I love your content, they are very nice and very useful to us and this text is worth everyone’s attention.

    ReplyDelete

Post a Comment

Popular posts from this blog

10+ Best Demo Websites for Selenium Automation Testing Practice

Automate Amazon like E-Commerce Website with Selenium WebDriver

Handle Static and Dynamic Web Table in Selenium WebDriver

How to Automate Google Search with Selenium WebDriver

Top 7 Web Development Trends in 2022

50+ Most Important Selenium WebDriver Interview Questions and Answers

25+ Most Important Selenium WebDriver Commands Tutorial

How to Find Broken Links on Webpage with Selenium WebDriver