Selenium-exercises

A set of shareable test pages & exercises for writing selenium tests against. This repo will also collect solution implementations using as many languages as possible -- Perl / Python / Ruby / Java / JavaScript etc...

View the Project on GitHub tvroom/selenium-exercises

< Exercise 1 All Exercises

Exercise 2: Testing Login

In this page fill out the username and password fields with the following values and hit Login.
Username: bob
Password: foobaz

Test the following:

  1. We are logged in as bob when supplying correct credentials
  2. We are logged in as guest when we don't supply a bad password
  3. We get an Incorrect Password error when supplying a bad password

Log in to our "app"

Username:
Password:

Sample Solutions

PerlPythonRuby
ex2.pl (view)
ex2.pl (download)
ex2.py (view)
ex2.py (download)
ex2.rb (view)
ex2.rb (download)
< Exercise 1 All Exercises