My tests for selenium seem to fail at random. As an example, I have this script
Scenario: I should be able to edit a user Given I created a user with the login " test@example.com " And I am viewing the user with login " test@example.com " Then I should see "Edit this user" When I click "Edit this user" Then I should be editing the user with login " test@example.com " When I press "Update" Then I should be viewing the user with login " test@example.com " And I should see "User was successfully updated."
This, along with others, works fine using the main webrat: rails mode. In selenium line
Then I should be editing the user with login " test@example.com "
and
Then I should be viewing the user with login " test@example.com "
randomly generated when sometimes the first failure occurs and the others fail. Using the website manually leads to the correct operation, and, as I said, the webrat / rails mode works fine.
Rails 2.2.2 Cucumbers 0.37 selenium 1.1.14 (fixed for working with FF3)
Additional Information:
Scenario: I should be able to edit a user
These are appropriate steps. Press Update is a standard webrat step (click_button)
source share