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
SEARCH
Jump to navigation
Jump to search
Currently this command is available in iMacros for Firefox. It will be soon available in other iMacros versions, too.
The SEARCH commands works directly with page source, instead of looking at the web page object model (DOM) that the TAG command uses. Thus SEARCH also "sees" e. g. comments in the page source code.
Test macro: This macro checks for the presence of the Google Analytics script on our website and then extracts the ID of it.
URL GOTO=http://iopus.com/ 'Check for Script SEARCH SOURCE=TXT:"_gat._getTracker(\"UA-336765-1\")" 'Check for Script, ignore case SEARCH SOURCE=TXT:"_gettracker" IGNORE_CASE=YES 'Use regular expression to extract data SEARCH SOURCE=REGEXP:"_get[Tt]racker\\(([^)]+)\\)" EXTRACT="Tracker is $1" 'Display extracted data PROMPT {{!EXTRACT}}