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.