Selenium Assignment – 2

This is the second assignment in the series of real-time scenarios from Qa Tech Hub. In this assignment, we will practice interacting with form elements like textbox, buttons, radio buttons and drop-down.

In case you missed the first assignment. Here is the link Selenium Assignment -1

Facebook Sign up:

Scenario:

  1. Open a Chrome browser.
  2. Navigate to “http://www.fb.com”
  3. Verify that the page is redirected to “http://www.facebook.com”, by getting the current URL. (use if-else condition to verify this condition or use Assert.assertequals() in case you are familiar with TestNG or JUnit)
  4. Verify that there is a “Create an account” section on the page.
  5. Fill in the text boxes: First Name, Surname, Mobile Number or email address, “Re-enter mobile number”, new password.
  6. Update the date of birth in the drop-down.
  7. Select gender.
  8. Click on “Create an account”.
  9. Verify that the account is created successfully.

facebookSignup

Try this. Send us the code for feedback and assessment or if you have any questions, queries or comments. Feel free to write us support@qatechhub.com. Keep Learning 🙂

Update – Please find the code below —

If you are a beginner, please follow below code –

In case you already know TestNG, Please follow the below code —

 

Link to the Third Assignment.

Saurabh Dhingra

About the Author

Saurabh Dhingra

Follow Saurabh Dhingra: