Get Iframe
Get Iframe
Finds an iframe on the browser's page by CSS selector and returns it as a browsing context of its own, so you can work with the elements inside it as if it were an ordinary page.
An iframe from a different domain may be restricted by the site's security policies. In that case the action can fail even though the iframe is on the page.
Options
Browser or page ID
The browser, tab or iframe opening action the iframe is in.
Element selector
The CSS selector identifying the iframe on the page, iframe#mainFrame for example.
Returns
This action has no return fields. The iframe's content is available through this action's ID in the Browser or page ID field of the other browser actions, so you can work with the elements inside the iframe as if it were a regular page. That includes the AI actions, such as AI Browser - Extract and AI Browser - Observe.
Rules and conditions
- Browser or page ID and Element selector are both required.
- The selector has to point at an iframe element on the page.
- If the iframe is not found, the action ends in an error.
- To reach an iframe inside another iframe, use a new Get Iframe action and point its Browser or page ID field to the previous Get Iframe action.