orke browser page.viewport
Change or reset the page viewport size.
When to use it
Change or reset the page viewport size.
Usage
Syntax · [ ] marks optional arguments
orke browser page.viewport [--width <number>] [--height <number>] [--reset <boolean>]Options
| Options | Required? | Values and description |
|---|---|---|
--width | Optional | The viewport width. |
--height | Optional | The viewport height. |
--reset | Optional | If true, restore the original size. Do not combine this with size options. |
Common management command options and reading errors →
Example
Terminal
orke browser page.viewport --page "PAGE_ID" --reset true --jsonReplace the example IDs, folders, references, and revision with actual query results. Take element references such as e7 from the latest observation as well.
What to check in the result
Read ok and error together, and check the actual IDs, state, and partial results in data.
Behavior and states to watch for
- You can specify the target with --page. If the target is ambiguous, choose an ID from tab.list.