Skip to content

Instantly share code, notes, and snippets.

@azizasm
Created May 18, 2018 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizasm/46fe25336f40bfefe03c360889001e8a to your computer and use it in GitHub Desktop.
Save azizasm/46fe25336f40bfefe03c360889001e8a to your computer and use it in GitHub Desktop.
Web Automation - iMacro Maybank2u Transaction history save into CSV file.
VERSION BUILD=9030808 RECORDER=FX
TAB T=1
SET !EXTRACT_TEST_POPUP NO
URL GOTO=https://www.maybank2u.com.my/mbb/m2u/common/M2ULogin.do?action=Login
FRAME F=1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:loginForm ATTR=ID:input-rounded CONTENT=username123
WAIT SECONDS=3
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:loginForm ATTR=ID:replacement-4
TAG POS=2 TYPE=INPUT:SUBMIT FORM=NAME:loginForm ATTR=ID:replacement-4
SET !ENCRYPTION STOREDKEY
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=ID:input-rounded CONTENT=pass
WAIT SECONDS=3
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:loginForm ATTR=ID:replacement-1
TAG POS=1 TYPE=STRONG ATTR=TXT:Accounts<SP>&<SP>Banking
TAG POS=1 TYPE=A ATTR=TXT:Business<SP>CA-i
'TAG POS=1 TYPE=A ATTR=TXT:Recent<SP>transactions
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Transaction<SP>history
'The first table is the list of currencies
'=> Extract data of **2nd** table (POS=2) on page
TAG POS=2 TYPE=TABLE ATTR=TXT:* EXTRACT=TXT
'The SAVEAS statement was added manually to write the extracted table to a file
'(The alternative way to get the extracted data is the Scripting Interface)
SAVEAS TYPE=EXTRACT FOLDER=* FILE=mytable_{{!NOW:yymmdd_hhnnss}}.csv
WAIT SECONDS=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment