User login

Quick Intro to Selenium

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.

  1. Download and install the Selenium IDE.
  2. 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.

Read more documentation

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

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.