FRAME

From iMacros
Jump to: navigation, search

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 may 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.

Syntax iMacros Browser IE Plug-in Firefox Chrome

FRAME (F=n|NAME=id)

Parameters

For HTML experts: The F=<x> value is the position of a frame inside the document's DOM model.
  • F
    Number of the frame. (Note: F=0 indicates the main page)
  • NAME
    The name of the frame (case-sensitive). Starting with V9, wildcards may be used.

Examples

Example macro: "Demo-Frames.iim"

FRAME F=6 
TAG POS=1 TYPE=SPAN ATTR=TXT:Select<SP>path
FRAME NAME=contents
TAG POS=1 TYPE=P FORM=NAME:f3 ATTR=TXT:* EXTRACT=TXT

Related Forum Posts

See Also

Demo-Frames, TAG, EXTRACT, TAB