New Page
New Page
Section titled “New Page”Type: browser-new-page · Package: Browser v1.0.0 · Output: ZoanPageSession
Opens a new tab in an already open browser and returns its page session. Use it when you need to work with several pages at the same time within the same browser: open a detail without losing the list, consult another section in parallel, compare two pages.
How it works
Section titled “How it works”From an existing session, creates a new tab (optionally navigating to a url) and returns a ZoanPageSession representing that tab. Pass that new session as page to the activities that must act on it, and close it with Close Page when finished.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | The browser session where to open the tab (from Open Browser or Attach Browser). |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
url | text | URL to navigate to when opening the tab. |
viewport | text | Window size as ANCHOxALTO (ex. 1920x1080). By default, the one in the browser. |
userAgent | text | Overrides the browser’s user-agent string. |
Output
Section titled “Output”Returns a ZoanPageSession that represents the new tab.
Example
Section titled “Example”Open Browser browser = chrome url = "https://portal.cliente.com" → output: pageBrowser New Page session = = page url = "https://portal.cliente.com/reportes" → output: reportesExtract Table page = = reportes selector = (#tabla) → output: datosClose Page page = = reportesRelated activities
Section titled “Related activities”- Close Page — close the tab when finished.
- Open Browser / Attach Browser — get the browser session.