Updating to latest protocol.json
This commit is contained in:
parent
a2ab1b4ed2
commit
3b6d7ebbaf
|
@ -442,7 +442,7 @@ func (p *SetDocumentContentParams) Do(ctxt context.Context, h cdp.Handler) (err
|
||||||
type CaptureScreenshotParams struct {
|
type CaptureScreenshotParams struct {
|
||||||
Format CaptureScreenshotFormat `json:"format,omitempty"` // Image compression format (defaults to png).
|
Format CaptureScreenshotFormat `json:"format,omitempty"` // Image compression format (defaults to png).
|
||||||
Quality int64 `json:"quality,omitempty"` // Compression quality from range [0..100] (jpeg only).
|
Quality int64 `json:"quality,omitempty"` // Compression quality from range [0..100] (jpeg only).
|
||||||
FromSurface bool `json:"fromSurface,omitempty"` // Capture the screenshot from the surface, rather than the view. Defaults to false.
|
FromSurface bool `json:"fromSurface,omitempty"` // Capture the screenshot from the surface, rather than the view. Defaults to true.
|
||||||
}
|
}
|
||||||
|
|
||||||
// CaptureScreenshot capture page screenshot.
|
// CaptureScreenshot capture page screenshot.
|
||||||
|
@ -465,7 +465,7 @@ func (p CaptureScreenshotParams) WithQuality(quality int64) *CaptureScreenshotPa
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithFromSurface capture the screenshot from the surface, rather than the
|
// WithFromSurface capture the screenshot from the surface, rather than the
|
||||||
// view. Defaults to false.
|
// view. Defaults to true.
|
||||||
func (p CaptureScreenshotParams) WithFromSurface(fromSurface bool) *CaptureScreenshotParams {
|
func (p CaptureScreenshotParams) WithFromSurface(fromSurface bool) *CaptureScreenshotParams {
|
||||||
p.FromSurface = fromSurface
|
p.FromSurface = fromSurface
|
||||||
return &p
|
return &p
|
||||||
|
|
|
@ -944,7 +944,7 @@
|
||||||
"name": "fromSurface",
|
"name": "fromSurface",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"description": "Capture the screenshot from the surface, rather than the view. Defaults to false.",
|
"description": "Capture the screenshot from the surface, rather than the view. Defaults to true.",
|
||||||
"experimental": true
|
"experimental": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user