public interface Browser
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Close browser gracefully.
|
GetVersionResult |
getVersion() |
Returns version information.
|
Bounds |
getWindowBounds(Integer windowId) |
Get position and size of the browser window.
|
GetWindowForTargetResult |
getWindowForTarget(String targetId) |
Get the browser window that contains the devtools target.
|
void |
setWindowBounds(Integer windowId,
Bounds bounds) |
Set position and/or size of the browser window.
|
void close()
GetVersionResult getVersion()
Bounds getWindowBounds(Integer windowId)
windowId
- Browser window id.GetWindowForTargetResult getWindowForTarget(String targetId)
targetId
- Devtools agent host id.void setWindowBounds(Integer windowId, Bounds bounds)
windowId
- 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.Copyright © 2017–2018 WebFolder OÜ. All rights reserved.