Module: BankApi::Clients::BancoSecurity::Login

Included in:
CompanyClient
Defined in:
lib/bank_api/clients/banco_security/concerns/login.rb

Instance Method Summary collapse

Instance Method Details

#click_login_buttonObject



22
23
24
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 22

def 
  browser.search('.btn-ingreso').click
end

#loginObject



11
12
13
14
15
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 11

def 
  
  
  
end

#set_login_valuesObject



17
18
19
20
# File 'lib/bank_api/clients/banco_security/concerns/login.rb', line 17

def 
  browser.search('#lrut').set @user_rut
  browser.search('#lpass').set @password
end

#validate_credentialsObject



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