Class: PasswordPage

Inherits:
Object
  • Object
show all
Includes:
Capybara::DSL
Defined in:
pages/PasswordPage.rb

Instance Method Summary collapse

Constructor Details

#initializePasswordPage

Returns a new instance of PasswordPage.


5
6
7
# File 'pages/PasswordPage.rb', line 5

def initialize
  @new_password=Password.pronounceable
end

Instance Method Details

#enter_new_passwordObject


9
10
11
12
13
14
# File 'pages/PasswordPage.rb', line 9

def enter_new_password
  fill_in('password', :with => @new_password)
  p "#{@new_password}"
  find(:xpath, ".//*[@id='quickstart_form']/div[2]/input").click
  
end