0% found this document useful (0 votes)
19 views9 pages

Selenium

Selenium is a JavaScript framework that allows automated testing of web applications. It works by simulating user actions like navigation and inputting text. Selenium IDE is a Firefox plugin that makes it easy to record test cases by simply using the web application. These recorded tests can then be played back and assertions can be added to validate specific text is present on pages. The documentation provides examples of creating test cases to log into and out of a sample photo gallery application.

Uploaded by

satyawan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views9 pages

Selenium

Selenium is a JavaScript framework that allows automated testing of web applications. It works by simulating user actions like navigation and inputting text. Selenium IDE is a Firefox plugin that makes it easy to record test cases by simply using the web application. These recorded tests can then be played back and assertions can be added to validate specific text is present on pages. The documentation provides examples of creating test cases to log into and out of a sample photo gallery application.

Uploaded by

satyawan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

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:
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

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

You might also like