Home ›
Quick Intro to SeleniumQuick Intro to Selenium
Submitted by Stefan Freudenberg on January 28, 2012 - 7:57pm
Selenium IDE is a Firefox plugin that does record-and-playback of interactions with the browser. You can use it to assert the presence and content of elements on a web page and check the results of form submissions.
- Download and install the Selenium IDE.
- Open the IDE (it's in the Tools menu) and it will start recording a test. Open the page you want to test and right-click in the browser window to add some commands.
Comments
Some more notes
First, don't miss that link to using Selenium in your browser: http://seleniumhq.org/docs/02_selenium_ide.jsp
To save a test case, use CTRL+S.
To start a new test case, right click under Test Case and select New Test Case.
(I don't think we should save test suites because we all want to be able to add test cases to the same suite; our test suite file should be autogenerated, it should be possible to do this with a Rake task.)
Note: If using Selenium to test as a logged in user, do not use a password that needs to stay secure-- it will necessarily be readable in plain text in the test case. Avoid logging in as an admin when possible to test as another user or as an anonymous visitor.
Post new comment