September 5, 2007...10:23 am
Selenium: Verify submit button is disabled after first click
Jump to Comments
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.
Leave a Reply