getWindowBounds method
Get position and size of the browser window.
windowId
Browser window id.
Returns: Bounds information of the window. When window state is 'minimized', the restored window
position and size are returned.
Implementation
Future<Bounds> getWindowBounds(WindowID windowId) async {
var result = await _client.send('Browser.getWindowBounds', {
'windowId': windowId,
});
return Bounds.fromJson(result['bounds'] as Map<String, dynamic>);
}