Get page source
Return the current HTML of the page (after scripts have run), and optionally save it to a file.
Command in the Browser toolkit · id ooa.browser/get_page_source · 5 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | No | Also save the HTML to this file. | |
| Session | String | No | browser | Session name. |
| Frame | Dictionary | No | The source of this iframe instead of the whole page: the captured iframe element. | |
| Window | Dictionary | No | Which window to act in. Leave empty to use the session's current tab. {"source": "browser", "title": "Invoice * - Shop", "title_match": "wildcard", "url": "...", "url_match": "contains", "browser": "edge"} switches to the first open tab whose title and/or address matches (also in attached browsers, and in one listening on port 9222); {"source": "variable", "variable": "session name"} uses that browser session; {"source": "application", "title": "..."} names a desktop window, which works only when it is a window of an attached browser. Matches: wildcard (default for the title), contains (default for the address), equals or regex; text matches ignore case. Values may use variables. | |
| Wait up to (milliseconds) | Number | No | 60000 | How long to wait for the browser to answer (G4). |
Outputs
| Output | Type | What it is |
|---|---|---|
| source | String | HTML of the page. |
| path | File | Saved file, or empty. |