class Menthol::Krungsri
Private Instance Methods
find_amount(name)
click to toggle source
# File lib/menthol/krungsri.rb, line 19 def find_amount(name) case name when "Savings" cell = browser.div(css: ".myport_table_column_3 .amc") cell.text when "LTF" cell = browser.div(css: ".myport_table_column_3_4 .amc") cell.text end end
login()
click to toggle source
# File lib/menthol/krungsri.rb, line 11 def login submit_credentials({ username: "ctl00$cphForLogin$username", password: "ctl00$cphForLogin$password", button: browser.input(name: "ctl00$cphForLogin$lbtnLoginNew") }) end
login_url()
click to toggle source
# File lib/menthol/krungsri.rb, line 7 def login_url "https://www.krungsrionline.com/BAY.KOL.WebSite/Common/Login.aspx" end
logout()
click to toggle source
# File lib/menthol/krungsri.rb, line 30 def logout button = browser.link(class: "header_logout menu_link_progress") button.click button.wait_while_present end