The Browser domain defines methods and events for browser managing.
The Browser domain defines methods and events for browser managing.
(get-version)
(get-version {:as params :keys []})
(get-version connection {:as params :keys []})
Returns version information.
Return map keys:
Key | Description |
---|---|
:protocol-version | Protocol version. |
:product | Product name. |
:revision | Product revision. |
:user-agent | User-Agent. |
:js-version | V8 version. |
Returns version information. Return map keys: Key | Description ------------------|------------ :protocol-version | Protocol version. :product | Product name. :revision | Product revision. :user-agent | User-Agent. :js-version | V8 version.
(get-window-bounds)
(get-window-bounds {:as params :keys [window-id]})
(get-window-bounds connection {:as params :keys [window-id]})
Get position and size of the browser window.
Parameters map keys:
Key | Description |
---|---|
:window-id | Browser window id. |
Return map keys:
Key | Description |
---|---|
:bounds | Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. |
Get position and size of the browser window. Parameters map keys: Key | Description -----------|------------ :window-id | Browser window id. Return map keys: Key | Description --------|------------ :bounds | Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.
(get-window-for-target)
(get-window-for-target {:as params :keys [target-id]})
(get-window-for-target connection {:as params :keys [target-id]})
Get the browser window that contains the devtools target.
Parameters map keys:
Key | Description |
---|---|
:target-id | Devtools agent host id. |
Return map keys:
Key | Description |
---|---|
:window-id | Browser window id. |
:bounds | Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. |
Get the browser window that contains the devtools target. Parameters map keys: Key | Description -----------|------------ :target-id | Devtools agent host id. Return map keys: Key | Description -----------|------------ :window-id | Browser window id. :bounds | Bounds information of the window. When window state is 'minimized', the restored window position and size are returned.
(set-window-bounds)
(set-window-bounds {:as params :keys [window-id bounds]})
(set-window-bounds connection {:as params :keys [window-id bounds]})
Set position and/or size of the browser window.
Parameters map keys:
Key | Description |
---|---|
:window-id | Browser window id. |
:bounds | New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. |
Set position and/or size of the browser window. Parameters map keys: Key | Description -----------|------------ :window-id | Browser window id. :bounds | New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close