public interface Browser
Modifier and Type | Method and 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()
GetWindowForTargetResult getWindowForTarget(String targetId)
targetId
- Devtools agent host id.GetVersionResult getVersion()
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 WebFolder OÜ. All rights reserved.