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
m (Text replacement - "http://www.iopus.com/imacros/demo/v6/f1/form.asp" to "http://demo.imacros.net/Automate/TestForm1") |
|||
Line 14: | Line 14: | ||
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 |
− | 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 |
=== The Missing Step === | === The Missing Step === |
Revision as of 13:50, 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=1 TYPE=INPUT:CHECKBOX FORM=NAME:TestForm ATTR=NAME:C8&&VALUE:ON CONTENT=YES
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 FORM=NAME:TestForm ATTR=NAME:main CONTENT=2 TAG POS=1 TYPE=SELECT FORM=NAME:TestForm ATTR=NAME:drink CONTENT=2 'here's the new step TAG POS=1 TYPE=INPUT:CHECKBOX FORM=NAME:TestForm ATTR=NAME:C8&&VALUE:ON CONTENT=YES 'the old macro continues TAG POS=1 TYPE=SELECT FORM=NAME:TestForm ATTR=NAME:dessert CONTENT=1 TAG POS=1 TYPE=TEXTAREA FORM=NAME:TestForm ATTR=NAME:Remarks CONTENT=Thanks<SP>a<SP>lot. TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:TestForm ATTR=NAME:SendButton 'New page loaded