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 "Insert Missing Steps"
Jump to navigation
Jump to search
Line 41: | Line 41: | ||
TAB CLOSEALLOTHERS | TAB CLOSEALLOTHERS | ||
URL GOTO=http://demo.imacros.net/Automate/TestForm1 | URL GOTO=http://demo.imacros.net/Automate/TestForm1 | ||
− | TAG POS=1 TYPE=SELECT | + | TAG POS=1 TYPE=SELECT ATTR=NAME:food CONTENT=2 |
− | TAG POS=1 TYPE=SELECT | + | TAG POS=1 TYPE=SELECT ATTR=NAME:drink CONTENT=2 |
− | 'here's the new step | + | 'here's the new step |
− | TAG POS= | + | TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:drinksize |
'the old macro continues | 'the old macro continues | ||
− | TAG POS=1 TYPE=SELECT | + | TAG POS=1 TYPE=SELECT ATTR=NAME:dessert CONTENT=1 |
− | TAG POS=1 TYPE=TEXTAREA | + | TAG POS=1 TYPE=TEXTAREA ATTR=NAME:Remarks CONTENT=Thanks<SP>a<SP>lot. |
− | TAG POS=1 TYPE= | + | TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Click<SP>to<SP>order<SP>now |
'New page loaded | 'New page loaded |
Revision as of 13:56, 21 November 2018
As the iMacros macros are simple text files, you can add steps by copy&paste. Here's an example:
The Initial Macro
We want to automate a form (in this case it is http://demo.imacros.net/Automate/TestForm1):
The inital recording yields the following macro
VERSION BUILD=6200707 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://demo.imacros.net/Automate/TestForm1 TAG POS=1 TYPE=SELECT ATTR=NAME:food CONTENT=2 TAG POS=1 TYPE=SELECT ATTR=NAME:drink CONTENT=2 TAG POS=1 TYPE=SELECT ATTR=NAME:dessert CONTENT=1 TAG POS=1 TYPE=TEXTAREA ATTR=NAME:Remarks CONTENT=Thanks<SP>a<SP>lot. TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Click<SP>to<SP>order<SP>now 'New page loaded
The Missing Step
Now we find that we missed recording the drink size. In order to add it, we record this single step which results in the following macro:
VERSION BUILD=6200707 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://demo.imacros.net/Automate/TestForm1 TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:drinksize
The New Macro
Inserting the new step, we get the new, complete form filling macro:
VERSION BUILD=6200707 TAB T=1 TAB CLOSEALLOTHERS URL GOTO=http://demo.imacros.net/Automate/TestForm1 TAG POS=1 TYPE=SELECT ATTR=NAME:food CONTENT=2 TAG POS=1 TYPE=SELECT ATTR=NAME:drink CONTENT=2 'here's the new step TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:drinksize 'the old macro continues TAG POS=1 TYPE=SELECT ATTR=NAME:dessert CONTENT=1 TAG POS=1 TYPE=TEXTAREA ATTR=NAME:Remarks CONTENT=Thanks<SP>a<SP>lot. TAG POS=1 TYPE=BUTTON:SUBMIT ATTR=TXT:Click<SP>to<SP>order<SP>now 'New page loaded