Selenium
Selenium
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:
www.openqa.org/selenium/
Selenium IDE
The root of web The list of
application you actions in the
want to test actual test case
to execute
Reference of the
currently selected Specify
command commands,
including asserts
Test Creation Demo
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