Selenium Tutorial
What is Selenium?
• Javascript framework that runs in your web-
browser
• Works anywhere Javascript is supported
• Hooks for many other languages
• Java, Ruby, Python
• Can simulate a user navigating through
pages and then assert for specific marks on
the pages
• All you need to really know is HTML to start
using it right away
Where to get it?
• You can use Selenium-Core and
customize everything
• But it is easier to just get a Firefox plug-in
“Selenium-IDE” that helps you “record” test
cases
• You can record how an app is being used
and then play back those recordings
followed by asserts
• Get everything at:
[Link]/selenium/
Selenium IDE
The root of web The list of
application you actions in the
want to test actual test case
to execute
The log of the
events that were
executed,
including any
errors or warning
that may have
occurred
Selenium IDE
Record test
actions
Execution
Commands
Try the test in
the Web based
TestRunner
Reference of the
currently selected Specify
command commands,
including asserts
Test Creation Demo
• Create test case to log into the gallery
• Create test case to log out of the gallery
Start Pixory
Connect to the Server
Go to the Login Screen
Hit the Record Button
Type in Username and Password IDE should update
Hit record
again to
stop
Hit submit
Add assertTextPresent and Hit play to make sure your
type the text to search for test is successful