Smile Bank to Ledger

Check-in [3b0a9cbf4e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Check for Bulletin Board sumbit
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3b0a9cbf4e426a1387454e8db0b5b1ff1ec8b69f
User & Date: atomicules 2015-07-01 20:26:00
Context
2015-07-02
20:54
Add basics of getting previous statements check-in: b65738a784 user: atomicules tags: trunk
2015-07-01
20:26
Check for Bulletin Board sumbit check-in: 3b0a9cbf4e user: atomicules tags: trunk
11:34
Add basics for writing out transactions in Ledger format check-in: 16678c4f5f user: atomicules tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to smile.rb.

24
25
26
27
28
29
30

31
32
33
34
35
36
37
38

39
40
41
42
43
44
45
puts doc.xpath("//label")[0].text
page.form.firstPassCodeDigit = gets.strip
puts doc.xpath("//label")[1].text
page.form.secondPassCodeDigit = gets.strip
page = page.form.submit

#Other logon details

puts page.form.fields[1].name
page.form.fields[1].value = gets.strip
page = page.form.submit

#TODO: Check for possible bulletin board
#page.form.action contains bulletinBoard.do
#For now assume it is there
page = page.form.submit


#Logged on!

#Current account
page = a.click(page.link_with(:text => "current account"))

#recent items







>




<
|
<
|
>







24
25
26
27
28
29
30
31
32
33
34
35

36

37
38
39
40
41
42
43
44
45
puts doc.xpath("//label")[0].text
page.form.firstPassCodeDigit = gets.strip
puts doc.xpath("//label")[1].text
page.form.secondPassCodeDigit = gets.strip
page = page.form.submit

#Other logon details
#TODO: Have yet to figure out date of birth
puts page.form.fields[1].name
page.form.fields[1].value = gets.strip
page = page.form.submit


if page.form.action.include?("bulletinBoard")

	page = page.form.submit
end

#Logged on!

#Current account
page = a.click(page.link_with(:text => "current account"))

#recent items