func (p *CaptureScreenshotParams) Do(ctx context.Context) (data []byte, err error) {
	// execute
	var res CaptureScreenshotReturns
	err = cdp.Execute(ctx, CommandCaptureScreenshot, p, &res)
	if err != nil {
		return nil, err
	}

	// decode
	var dec []byte
	dec, err = base64.StdEncoding.DecodeString(res.Data)
	if err != nil {
		return nil, err
	}
	return dec, nil
}
func (p *CaptureScreenshotParams) Do(ctx context.Context) (data []byte, err error) {
	
	var res CaptureScreenshotReturns
	err = cdp.Execute(ctx, CommandCaptureScreenshot, p, &res)
	if err != nil {
		return nil, err
	}

	
	var dec []byte
	dec, err = base64.StdEncoding.DecodeString(res.Data)
	if err != nil {
		return nil, err
	}
	return dec, nil
}
func ( p * CaptureScreenshotParams ) Do ( ctx context . Context ) ( data [ ] byte , err error ) { // execute var res CaptureScreenshotReturns err = cdp . Execute ( ctx , CommandCaptureScreenshot , p , & res ) if err != nil { return nil , err } // decode var dec [ ] byte dec , err = base64 . StdEncoding . DecodeString ( res . Data ) if err != nil { return nil , err } return dec , nil }
// Do executes Page.captureScreenshot against the provided context.
//
// returns:
//   data - Base64-encoded image data.
Do executes Page . captureScreenshot against the provided context . returns : data - Base64 - encoded image data .