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 "Upgrading to Version 6"
Line 46: | Line 46: | ||
URL GOTO=http://demo.imacros.net/Automate/TestForm1 | URL GOTO=http://demo.imacros.net/Automate/TestForm1 | ||
TAG POS=1 TYPE=INPUT:RADIO ATTR=NAME:Customer CONTENT=YES | TAG POS=1 TYPE=INPUT:RADIO ATTR=NAME:Customer CONTENT=YES | ||
− | TAG POS=1 TYPE=INPUT:RADIO ATTR=NAME:Customer | + | TAG POS=1 TYPE=INPUT:RADIO ATTR=NAME:Customer EXTRACT=TXT |
== Scripting Interface == | == Scripting Interface == |
Latest revision as of 14:05, 21 November 2018
This page lists differences between iMacros Version 5 and iMacros Version 6. In general, macros created with version V5 or earlier work well in V6.
Data Extraction, EXTRACT command
The EXTRACT command has been replaced with the TAG... EXTRACT=... command. The old version 4/5 EXTRACT is still supported, but we recommend using the new syntax for new projects. iMacros for Firefox supports only the new syntax.
WINCLICK
The WINCLICK command has been replaced with the new DirectScreen Technology which adds support for Mouse Over and Drag & Drop effects. The old version 4/5 WINCLICK command is still supported. Internally WINCLICK is translated into the corresponding DirectScreen commands.
TAG Command
While developing iMacros for Firefox we found an issue in the old TAG command syntax (Use of the * asterix). And instead of adding the same issue to Firefox, we decided that it is better to fix it in the iMacros Browser and iMacros for Internet Explorer as well. Please note that the change affects only TAG commands with empty attributes!
With Version 6 an empty attribute (without *) no longer means "*" (= match everything = ignore this attribute) but means "match if attribute is empty".
Solution: When upgrading your macros, please add "*" to all empty tags or simply remove the empty attribute altogether (recommended):
So change
TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz&&HREF:
to (add "*")
TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz&&HREF:*
or (simply remove the empty attribute)
TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz
To test the TAG commands you can use this small macro that shows the different matching options. All TAG commands in this macro match the same HTML element:
URL GOTO=http://www.dmoz.org/Regional/Europe/News_and_Media/ TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz&&HREF:http://www.dmoz.org/about.html BACK TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz&&HREF:http://www.* BACK TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz&&HREF:* BACK TAG POS=1 TYPE=A ATTR=TXT:about<SP>dmoz
If you use iMacros for Firefox you can run the macro directly from this link.
TAG INPUT:CHECKBOX
The checkbox and radio button CONTENT value was changed from "on" to "YES". As a new feature, you can now extract the state of a checkbox or radiobutton using TAG...EXTRACT=TXT
URL GOTO=http://demo.imacros.net/Automate/TestForm1 TAG POS=1 TYPE=INPUT:RADIO ATTR=NAME:Customer CONTENT=YES TAG POS=1 TYPE=INPUT:RADIO ATTR=NAME:Customer EXTRACT=TXT
Scripting Interface
The name of the iMacros COM object as been renamed from "InternetMacros.iim" to "iMacros".
In VBS please use CreateObject ("iMacros") instead of CreateObject ("InternetMacros.iim").
In C# you can include the object with "using iMacros;" instead of "using InternetMacros;". Similar name changes apply to all other programming and scripting languages.
The sample projects already reflect this change.
The iMacros COM object is called "iMacros Scripting Interface" in the "Add Reference" dialog. Before it had a rather cryptic name (iimInterface).
Known Upgrade Issues
Scripting Interface: If you encounter Run-time error '429' after upgrading, please see this forum post for a solution.