Module: BankApi::Clients::BancoSecurity::Login
- Included in:
- CompanyClient
- Defined in:
- lib/bank_api/clients/banco_security/concerns/login.rb
Instance Method Summary collapse
- #click_login_button ⇒ Object
- #login ⇒ Object
- #set_login_values ⇒ Object
- #validate_credentials ⇒ Object
Instance Method Details
#click_login_button ⇒ Object
22 23 24 |
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 22 def browser.search('.btn-ingreso').click end |
#login ⇒ Object
11 12 13 14 15 |
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 11 def login goto_login set_login_values end |
#set_login_values ⇒ Object
17 18 19 20 |
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 17 def set_login_values browser.search('#lrut').set @user_rut browser.search('#lpass').set @password end |
#validate_credentials ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 3 def validate_credentials raise BankApi::MissingCredentialsError if [ @user_rut, @password, @company_rut ].any?(&:nil?) end |