SAVEITEM

From iMacros
Revision as of 20:41, 30 November 2017 by Td (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Used in conjunction with the ONDOWNLOAD command to save pages and web elements.

SAVEITEM has two uses:

1. As regular command:

SAVEITEM saves the document that is currently displayed in the web browser, for example a PDF file.

2. When used with a TAG command, it saves the element that is marked by the TAG command. It copies the element from the browser cache. So the element (typically a picture) is not loaded again.

Syntax

1. iMacros Browser IE Plug-in As regular command:

SAVEITEM

2. iMacros Browser IE Plug-in Firefox Chrome Used with the TAG command to select the element (image).

 ONDOWNLOAD FOLDER=* FILE=*
 TAG POS=1 TYPE=INPUT:IMAGE FORM=NAME:frmImpact2 ATTR=ID:mapimg CONTENT=EVENT:SAVEITEM 
 ONDOWNLOAD FOLDER=* FILE=*
 TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEITEM

Parameters

None

Examples

1. As regular command: Demo-SavePDF 2. Used with (picture) elements: Demo-ImageDownload

Related Forum Posts

See Also

ONDOWNLOAD, SAVEPICTUREAS