The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "Demo-FillForm"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
This macro shows how to fill forms automatically using iMacros. | This macro shows how to fill forms automatically using iMacros. | ||
− | |||
− | |||
Macro Code | Macro Code | ||
− | + | <nowiki> | |
− | + | VERSION BUILD=8031994 | |
− | + | TAB T=1 | |
− | + | TAB CLOSEALLOTHERS | |
− | + | URL GOTO=http://demo.imacros.net/Automate/TestForm1 | |
− | + | 'We use quotation marks for a content with spaces | |
− | + | TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=ID:name CONTENT="Suman Tester" | |
− | + | 'We manually changed the TAG command from using the postion of a value (e. g. "2") | |
− | + | 'to using its real name, e. g. "Pizza" | |
− | + | TAG POS=1 TYPE=SELECT FORM=ID:demo ATTR=ID:food CONTENT=%Pizza | |
− | + | TAG POS=1 TYPE=SELECT FORM=ID:demo ATTR=ID:drink CONTENT=%Coke | |
− | + | TAG POS=1 TYPE=INPUT:RADIO FORM=ID:demo ATTR=ID:medium&&VALUE:medium CONTENT=YES | |
− | + | 'If you want to select more than one, use a colon (:) | |
− | + | TAG POS=1 TYPE=SELECT FORM=ID:demo ATTR=ID:dessert CONTENT=%ice<SP>cream:%Apple<SP>Pie | |
− | + | TAG POS=1 TYPE=INPUT:RADIO FORM=ID:demo ATTR=NAME:Customer CONTENT=YES | |
− | + | SET !ENCRYPTION NO | |
− | + | TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:demo ATTR=NAME:Reg_code CONTENT=tester | |
+ | 'In a quoted content, we can use \n for a new line, \t for tab and \" for literal quotes | ||
+ | TAG POS=1 TYPE=TEXTAREA FORM=ID:demo ATTR=NAME:Remarks CONTENT=iMacros<SP>can<SP>fill<SP>forms. | ||
+ | TAG POS=1 TYPE=BUTTON:SUBMIT FORM=ID:demo ATTR=TXT:Click<SP>to<SP>order<SP>now | ||
+ | </nowiki> |
Revision as of 11:50, 19 October 2012
This macro shows how to fill forms automatically using iMacros.
Macro Code
VERSION BUILD=8031994 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://demo.imacros.net/Automate/TestForm1 'We use quotation marks for a content with spaces TAG POS=1 TYPE=INPUT:TEXT FORM=ID:demo ATTR=ID:name CONTENT="Suman Tester" 'We manually changed the TAG command from using the postion of a value (e. g. "2") 'to using its real name, e. g. "Pizza" TAG POS=1 TYPE=SELECT FORM=ID:demo ATTR=ID:food CONTENT=%Pizza TAG POS=1 TYPE=SELECT FORM=ID:demo ATTR=ID:drink CONTENT=%Coke TAG POS=1 TYPE=INPUT:RADIO FORM=ID:demo ATTR=ID:medium&&VALUE:medium CONTENT=YES 'If you want to select more than one, use a colon (:) TAG POS=1 TYPE=SELECT FORM=ID:demo ATTR=ID:dessert CONTENT=%ice<SP>cream:%Apple<SP>Pie TAG POS=1 TYPE=INPUT:RADIO FORM=ID:demo ATTR=NAME:Customer CONTENT=YES SET !ENCRYPTION NO TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:demo ATTR=NAME:Reg_code CONTENT=tester 'In a quoted content, we can use \n for a new line, \t for tab and \" for literal quotes TAG POS=1 TYPE=TEXTAREA FORM=ID:demo ATTR=NAME:Remarks CONTENT=iMacros<SP>can<SP>fill<SP>forms. TAG POS=1 TYPE=BUTTON:SUBMIT FORM=ID:demo ATTR=TXT:Click<SP>to<SP>order<SP>now