Created
December 1, 2011 09:58
-
-
Save leonid-shevtsov/1415480 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When 'I signup as "$nickname" with email "$email" and password "$password"' do |nickname, email, password| | |
find('.toggle-signup-block').click | |
find('#signup-regular').click | |
find('.cp_signup_nickname input.r').set nickname | |
find('.cp_signup_email input.r').set email | |
find('.cp_signup_password input.tip').click | |
find('.cp_signup_password input.password').set password | |
find('.cp_day .opener').click | |
find('.cp_day li[text()="1"]').click | |
find('.cp_month .opener').click | |
find('.cp_month li[text()="1"]').click | |
find('.cp_year .opener').click | |
find('.cp_year li[text()="1980"]').click | |
find('h1#button_submit_signup_form').click | |
# TODO sleeping is not very graceful; wait_until would be better | |
sleep(2) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment