Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Testing form with Selenium

Most web applications have multiple forms by which users interact with the web server. Test cases are developed based on the forms that are associated with business scenarios. This site provides a sample registration form and Selenium test code for you to test the application.

Note: the registration form is a dummy form that does not collect any user information. It is used only for testing.

URL: http://www.seleniummaster.com/seleniumformtest/registrationform.aspx

Test Case: Authorized users are able to register (Let's assume that you have already logged in the system).

Step Action Test Data Expected Result Pass/Fail Note
1 Open web browser and navigate to the registration form URL Web Browser: FireFox

URL: http://www.seleniummaster.com/

seleniumformtest/registrationform.aspx

Browser opens and the registration form loads.    
2 Enter first name First name: ABCDEFG System accepts first name    
3 Enter last name Last name: HIGKLMN System accepts last name    
4 Enter email address Email: This email address is being protected from spambots. You need JavaScript enabled to view it. System accepts email address    
5 Enter phone number Phone: 123-456-7890 System accepts phone number    
6 Select a book from the drop down list Book: Selenium Web Driver Selenium Web Driver is selected.    
7 Select an Operating System from the radio button options Option: Windows XP Windows XP is selected    
8 Click on the Register button   The button should be clicked.    
9 Verify the registration confirmation   The page should display the confirmation "Thank you for your registration"