FRAME
Top  Previous  Next


Directs all following TAG or EXTRACT commands to the specified frame. The frame tag and number is automatically generated by clicking into a framed web page. The number of a frame is given by the position of its <FRAME> HTML tag in the <FRAMESET> context of the parent page.

If
EXTRACT commands do not work on a framed website, this might be due to the fact that the focus is not in the frame in which the extraction should take place. In this case, try to click next to the information you want to extract before you start the extraction wizard.

Sometimes iMacros continues with a
TAG command inside a frame before the web site in that frame has been completely loaded. This can be avoided by adding a WAIT SECONDS=#DOWNLOADCOMPLETE# command before the TAG command (see Examples).

Syntax

FRAME F=n


Parameters

F
Number of the frame.


Examples

Example macro: "Demo-Frames.iim"

FRAME F=6
TAG POS=1 TYPE=SPAN ATTR=TXT:Select<SP>path


This could generate an error if the content inside the frame is not loaded in time. To avoid this error, use

FRAME F=6
WAIT SECONDS=#DOWNLOADCOMPLETE#
TAG POS=1 TYPE=SPAN ATTR=TXT:Select<SP>path


instead.


See Also

TAG, EXTRACT, TAB



Page URL http://www.iopus.com/imacros/help/cmd_frame.htm