Get an already-open page
Get an already-open page
Returns a reference to an open browser tab from its position, so you can work with a particular tab in a browser that has several open.
Tip
To get the most recently opened tab without giving an index, use Get the most recent tab.
Options
Part of a URL
Get the page from part of the tab's URL.
Element selector
Get the page from an HTML selector.
The page's position in the browser
Get an open page from the tab's position in the browser.
By title
Get the page from the list by the page's title.
Returns
Javascript code
js
actions["action-id"]._page // the fetched tab's active page (Session)
actions["action-id"]._browser // the browser instance (Session)
Field selection
This action's output is available in the Browser or page ID field of the browser actions that follow.
Rules and conditions
- Browser or page ID and The index are both required.
- The index starts at
0, so the browser's first tab is index0. - If the index is beyond the number of open tabs, the action ends in an error.