class Menthol::Bangkokbank
Private Instance Methods
find_amount(name)
click to toggle source
# File lib/menthol/bangkokbank.rb, line 20 def find_amount(name) case name when "Savings" cell = browser.span(id: "ctl00_ctl00_C_CW_gvDepositAccts_ctl02_lblAcctAvailBal").wait_until_present cell.text end end
login()
click to toggle source
# File lib/menthol/bangkokbank.rb, line 12 def login submit_credentials({ username: "txtID", password: "txtPwd", button: browser.input(name: "btnLogOn"), }) end
login_url()
click to toggle source
# File lib/menthol/bangkokbank.rb, line 8 def login_url "https://ibanking.bangkokbank.com/SignOn.aspx" end
logout()
click to toggle source
# File lib/menthol/bangkokbank.rb, line 28 def logout button = browser.link(href: "javascript:IMG2_onclick();") button.click button.wait_while_present end