public interface Browser
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Close browser gracefully.
|
List<String> |
getBrowserCommandLine() |
Returns the command line switches for the browser process if, and only if
--enable-automation is on the commandline.
|
Histogram |
getHistogram(String name) |
Get a Chrome histogram by name.
|
Histogram |
getHistogram(String name,
Boolean delta) |
Get a Chrome histogram by name.
|
List<Histogram> |
getHistograms() |
Get Chrome histograms.
|
List<Histogram> |
getHistograms(String query,
Boolean delta) |
Get Chrome histograms.
|
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()
List<String> getBrowserCommandLine()
List<Histogram> getHistograms(String query, Boolean delta)
query
- Requested substring in name. Only histograms which have query as a
substring in their name are extracted. An empty or absent query returns
all histograms.delta
- If true, retrieve delta since last call.Histogram getHistogram(String name, Boolean delta)
name
- Requested histogram name.delta
- If true, retrieve delta since last call.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–2018 WebFolder OÜ. All rights reserved.