Posts Tagged as ‘Testing’

September 5, 2007

Selenium: Verify submit button is disabled after first click

To make sure a forms submit button is disabled after it is clicked once, a Selenium test should look like this:

click
_button

verifyNotEditable
_button
true

waitForPageToLoad
50000

The button will be clicked (without waiting). Then it verifies that the button is disabled. Finally we wait for the next page to load.

June 20, 2007

Selenium Testing with Prototype AJAX

If you are using Selenium to test your web application and you are having some AJAX in it, you may know that the waitForCondition assertion is your friend.
According to the Selenium documentation it:
Runs the specified JavaScript snippet repeatedly until it evaluates to “true”.
With this you can define your own condition which defines the end of [...]

November 22, 2006

The “other” side of Scriptaculous

The JS library Scriptaculous is mainly know for its amazing effects and controls (e.g. AutoComplete, Drag&Drop, Sliders). However there is another side of it which is not as obvious. It contains a complete JS UnitTest framework which makes testing Javascript extremely easy and convenient.
Thomas Fuchs (creator of Scriptaculous) posted a presentation he gave about [...]