Demo-Filter

From iMacros
Jump to: navigation, search

This macro demonstrates the use of the FILTER command.

Macro Code

VERSION BUILD=10.4.28.1074
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://demo.imacros.net/Automate/Filter

'
' loads a normal page, but without the images (for higher loading speed)
FILTER TYPE=IMAGES STATUS=ON
URL GOTO=http://demo.imacros.net/Automate/Filter
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=NAME:textfield CONTENT=Image<SP>Filter<SP>ON<SP>(No<SP>images<SP>downloaded<SP>from<SP>server) 
WAIT SECONDS=3
'
'
' loads same page as above, but now with images
FILTER TYPE=IMAGES STATUS=OFF
'
URL GOTO=http://demo.imacros.net/Automate/Filter
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=NAME:textfield CONTENT=Image<SP>Filter<SP>OFF<SP>(Web<SP>page<SP>not<SP>filtered) 
WAIT SECONDS=3
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=NAME:textfield CONTENT=Image<SP>Filter<SP>Test<SP>completed