Frames
Top  Previous  Next

iMacros handles pages with frames automatically. It inserts FRAME statements that indicate to which frame the following TAG and/or EXTRACT command refers. Please note that TAG and/or EXTRACT will fail if they are not directed to the correct frame. To avoid this error, please do the following:

·EXTRACT command: if the object that needs to be extracted is on a framed page, make sure that you use the correct FRAME statement. You generate such a FRAME statement by clicking on any element of any kind within the frame prior to performing the extraction  

·If a TAG error occurs because the pages are not completely loaded: normally iMacros waits until the browser sends a "Page Loaded" signal before it continues. On framed pages, iMacros sometimes gets confused and continues with the macro too early, i.e. before all frames have been loaded. If the content of a frame is not yet loaded, the following TAG commands will generate an error. You can resolve this problem simply by adding a WAIT SECONDS=#DOWNLOADCOMPLETE# command to your macro.  

Background information
The number n in the FRAME F=n command is the position of the frame in the object tree of website:

frame-dom-inspector-f6



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