Sha256: 4d27c0343fa1f6afbac5f1bfb6ef14a727c54ba70f77af1915c8b12edbefe19e
Contents?: true
Size: 521 Bytes
Versions: 15
Compression:
Stored size: 521 Bytes
Contents
click_link 'Form Authentication' # wait 3 seconds for field 'username' to appear username_field = wait 3 do find_field 'username' end # @username comes from: run "helpers/login" username: "tomsmith" username_field.type @username # we assume that because username was found, then password will be found without waiting # also we use parenthesis around to be able to call .type on the returned element find_field('password').type @password click_button 'Login' wait 3 do has_text? 'Welcome to the Secure Area' end
Version data entries
15 entries across 15 versions & 1 rubygems