Updating to latest protocol.json

This commit is contained in:
Kenneth Shaw 2017-05-30 14:14:20 +07:00
parent a2ab1b4ed2
commit 3b6d7ebbaf
2 changed files with 3 additions and 3 deletions

View File

@ -442,7 +442,7 @@ func (p *SetDocumentContentParams) Do(ctxt context.Context, h cdp.Handler) (err
type CaptureScreenshotParams struct {
Format CaptureScreenshotFormat `json:"format,omitempty"` // Image compression format (defaults to png).
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.
@ -465,7 +465,7 @@ func (p CaptureScreenshotParams) WithQuality(quality int64) *CaptureScreenshotPa
}
// 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 {
p.FromSurface = fromSurface
return &p

View File

@ -944,7 +944,7 @@
"name": "fromSurface",
"type": "boolean",
"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
}
],