package emulation

Import Path
	github.com/chromedp/cdproto/emulation (on go.dev)

Dependency Relation
	imports 8 packages, and imported by 2 packages

Involved Source Files easyjson.go Package emulation provides the Chrome DevTools Protocol commands, types, and events for the Emulation domain. This domain emulates different environments for the page. Generated by the cdproto-gen command. events.go types.go
Package-Level Type Names (total 41)
/* sort by: | */
CanEmulateParams tells whether emulation is supported. Do executes Emulation.canEmulate against the provided context. returns: result - True if emulation is supported. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface CanEmulateParams : github.com/goccy/go-json.Marshaler *CanEmulateParams : github.com/goccy/go-json.Unmarshaler CanEmulateParams : github.com/mailru/easyjson.Marshaler *CanEmulateParams : github.com/mailru/easyjson.MarshalerUnmarshaler *CanEmulateParams : github.com/mailru/easyjson.Unmarshaler CanEmulateParams : encoding/json.Marshaler *CanEmulateParams : encoding/json.Unmarshaler func CanEmulate() *CanEmulateParams
CanEmulateReturns return values. // True if emulation is supported. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface CanEmulateReturns : github.com/goccy/go-json.Marshaler *CanEmulateReturns : github.com/goccy/go-json.Unmarshaler CanEmulateReturns : github.com/mailru/easyjson.Marshaler *CanEmulateReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *CanEmulateReturns : github.com/mailru/easyjson.Unmarshaler CanEmulateReturns : encoding/json.Marshaler *CanEmulateReturns : encoding/json.Unmarshaler
ClearDeviceMetricsOverrideParams clears the overridden device metrics. Do executes Emulation.clearDeviceMetricsOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.Action *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.CallAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.EmulateAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.EvaluateAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.KeyAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.MouseAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.NavigateAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.PollAction *ClearDeviceMetricsOverrideParams : github.com/chromedp/chromedp.QueryAction ClearDeviceMetricsOverrideParams : github.com/goccy/go-json.Marshaler *ClearDeviceMetricsOverrideParams : github.com/goccy/go-json.Unmarshaler ClearDeviceMetricsOverrideParams : github.com/mailru/easyjson.Marshaler *ClearDeviceMetricsOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ClearDeviceMetricsOverrideParams : github.com/mailru/easyjson.Unmarshaler ClearDeviceMetricsOverrideParams : encoding/json.Marshaler *ClearDeviceMetricsOverrideParams : encoding/json.Unmarshaler func ClearDeviceMetricsOverride() *ClearDeviceMetricsOverrideParams
ClearGeolocationOverrideParams clears the overridden Geolocation Position and Error. Do executes Emulation.clearGeolocationOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.Action *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.CallAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.EmulateAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.EvaluateAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.KeyAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.MouseAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.NavigateAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.PollAction *ClearGeolocationOverrideParams : github.com/chromedp/chromedp.QueryAction ClearGeolocationOverrideParams : github.com/goccy/go-json.Marshaler *ClearGeolocationOverrideParams : github.com/goccy/go-json.Unmarshaler ClearGeolocationOverrideParams : github.com/mailru/easyjson.Marshaler *ClearGeolocationOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ClearGeolocationOverrideParams : github.com/mailru/easyjson.Unmarshaler ClearGeolocationOverrideParams : encoding/json.Marshaler *ClearGeolocationOverrideParams : encoding/json.Unmarshaler func ClearGeolocationOverride() *ClearGeolocationOverrideParams
ClearIdleOverrideParams clears Idle state overrides. Do executes Emulation.clearIdleOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *ClearIdleOverrideParams : github.com/chromedp/chromedp.Action *ClearIdleOverrideParams : github.com/chromedp/chromedp.CallAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.EmulateAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.EvaluateAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.KeyAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.MouseAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.NavigateAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.PollAction *ClearIdleOverrideParams : github.com/chromedp/chromedp.QueryAction ClearIdleOverrideParams : github.com/goccy/go-json.Marshaler *ClearIdleOverrideParams : github.com/goccy/go-json.Unmarshaler ClearIdleOverrideParams : github.com/mailru/easyjson.Marshaler *ClearIdleOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ClearIdleOverrideParams : github.com/mailru/easyjson.Unmarshaler ClearIdleOverrideParams : encoding/json.Marshaler *ClearIdleOverrideParams : encoding/json.Unmarshaler func ClearIdleOverride() *ClearIdleOverrideParams
DisabledImageType enum of image types that can be disabled. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DisabledImageType MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the DisabledImageType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. DisabledImageType : github.com/goccy/go-json.Marshaler *DisabledImageType : github.com/goccy/go-json.Unmarshaler DisabledImageType : github.com/mailru/easyjson.Marshaler *DisabledImageType : github.com/mailru/easyjson.MarshalerUnmarshaler *DisabledImageType : github.com/mailru/easyjson.Unmarshaler DisabledImageType : encoding/json.Marshaler *DisabledImageType : encoding/json.Unmarshaler DisabledImageType : expvar.Var DisabledImageType : fmt.Stringer func SetDisabledImageTypes(imageTypes []DisabledImageType) *SetDisabledImageTypesParams const DisabledImageTypeAvif const DisabledImageTypeWebp
DisplayFeature [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DisplayFeature // A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length. // The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction. // Orientation of a display feature in relation to screen MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface DisplayFeature : github.com/goccy/go-json.Marshaler *DisplayFeature : github.com/goccy/go-json.Unmarshaler DisplayFeature : github.com/mailru/easyjson.Marshaler *DisplayFeature : github.com/mailru/easyjson.MarshalerUnmarshaler *DisplayFeature : github.com/mailru/easyjson.Unmarshaler DisplayFeature : encoding/json.Marshaler *DisplayFeature : encoding/json.Unmarshaler func SetDeviceMetricsOverrideParams.WithDisplayFeature(displayFeature *DisplayFeature) *SetDeviceMetricsOverrideParams
DisplayFeatureOrientation orientation of a display feature in relation to screen. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-DisplayFeature MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the DisplayFeatureOrientation as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. DisplayFeatureOrientation : github.com/goccy/go-json.Marshaler *DisplayFeatureOrientation : github.com/goccy/go-json.Unmarshaler DisplayFeatureOrientation : github.com/mailru/easyjson.Marshaler *DisplayFeatureOrientation : github.com/mailru/easyjson.MarshalerUnmarshaler *DisplayFeatureOrientation : github.com/mailru/easyjson.Unmarshaler DisplayFeatureOrientation : encoding/json.Marshaler *DisplayFeatureOrientation : encoding/json.Unmarshaler DisplayFeatureOrientation : expvar.Var DisplayFeatureOrientation : fmt.Stringer const DisplayFeatureOrientationHorizontal const DisplayFeatureOrientationVertical
EventVirtualTimeBudgetExpired notification sent after the virtual time budget for the current VirtualTimePolicy has run out. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#event-virtualTimeBudgetExpired MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventVirtualTimeBudgetExpired : github.com/goccy/go-json.Marshaler *EventVirtualTimeBudgetExpired : github.com/goccy/go-json.Unmarshaler EventVirtualTimeBudgetExpired : github.com/mailru/easyjson.Marshaler *EventVirtualTimeBudgetExpired : github.com/mailru/easyjson.MarshalerUnmarshaler *EventVirtualTimeBudgetExpired : github.com/mailru/easyjson.Unmarshaler EventVirtualTimeBudgetExpired : encoding/json.Marshaler *EventVirtualTimeBudgetExpired : encoding/json.Unmarshaler
MediaFeature [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-MediaFeature // address field name, for example GIVEN_NAME. // address field value, for example Jon Doe. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface MediaFeature : github.com/goccy/go-json.Marshaler *MediaFeature : github.com/goccy/go-json.Unmarshaler MediaFeature : github.com/mailru/easyjson.Marshaler *MediaFeature : github.com/mailru/easyjson.MarshalerUnmarshaler *MediaFeature : github.com/mailru/easyjson.Unmarshaler MediaFeature : encoding/json.Marshaler *MediaFeature : encoding/json.Unmarshaler func SetEmulatedMediaParams.WithFeatures(features []*MediaFeature) *SetEmulatedMediaParams
OrientationType orientation type. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-ScreenOrientation MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the OrientationType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. OrientationType : github.com/goccy/go-json.Marshaler *OrientationType : github.com/goccy/go-json.Unmarshaler OrientationType : github.com/mailru/easyjson.Marshaler *OrientationType : github.com/mailru/easyjson.MarshalerUnmarshaler *OrientationType : github.com/mailru/easyjson.Unmarshaler OrientationType : encoding/json.Marshaler *OrientationType : encoding/json.Unmarshaler OrientationType : expvar.Var OrientationType : fmt.Stringer func github.com/chromedp/chromedp.EmulateOrientation(orientation OrientationType, angle int64) chromedp.EmulateViewportOption const OrientationTypeLandscapePrimary const OrientationTypeLandscapeSecondary const OrientationTypePortraitPrimary const OrientationTypePortraitSecondary
ResetPageScaleFactorParams requests that page scale factor is reset to initial values. Do executes Emulation.resetPageScaleFactor against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *ResetPageScaleFactorParams : github.com/chromedp/chromedp.Action *ResetPageScaleFactorParams : github.com/chromedp/chromedp.CallAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.EmulateAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.EvaluateAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.KeyAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.MouseAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.NavigateAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.PollAction *ResetPageScaleFactorParams : github.com/chromedp/chromedp.QueryAction ResetPageScaleFactorParams : github.com/goccy/go-json.Marshaler *ResetPageScaleFactorParams : github.com/goccy/go-json.Unmarshaler ResetPageScaleFactorParams : github.com/mailru/easyjson.Marshaler *ResetPageScaleFactorParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ResetPageScaleFactorParams : github.com/mailru/easyjson.Unmarshaler ResetPageScaleFactorParams : encoding/json.Marshaler *ResetPageScaleFactorParams : encoding/json.Unmarshaler func ResetPageScaleFactor() *ResetPageScaleFactorParams
ScreenOrientation screen orientation. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-ScreenOrientation // Orientation angle. // Orientation type. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface ScreenOrientation : github.com/goccy/go-json.Marshaler *ScreenOrientation : github.com/goccy/go-json.Unmarshaler ScreenOrientation : github.com/mailru/easyjson.Marshaler *ScreenOrientation : github.com/mailru/easyjson.MarshalerUnmarshaler *ScreenOrientation : github.com/mailru/easyjson.Unmarshaler ScreenOrientation : encoding/json.Marshaler *ScreenOrientation : encoding/json.Unmarshaler func SetDeviceMetricsOverrideParams.WithScreenOrientation(screenOrientation *ScreenOrientation) *SetDeviceMetricsOverrideParams
SetAutoDarkModeOverrideParams automatically render all web contents using a dark theme. Enabled bool Do executes Emulation.setAutoDarkModeOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithEnabled whether to enable or disable automatic dark mode. If not specified, any existing override will be cleared. *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.Action *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.CallAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.KeyAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.MouseAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.PollAction *SetAutoDarkModeOverrideParams : github.com/chromedp/chromedp.QueryAction SetAutoDarkModeOverrideParams : github.com/goccy/go-json.Marshaler *SetAutoDarkModeOverrideParams : github.com/goccy/go-json.Unmarshaler SetAutoDarkModeOverrideParams : github.com/mailru/easyjson.Marshaler *SetAutoDarkModeOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetAutoDarkModeOverrideParams : github.com/mailru/easyjson.Unmarshaler SetAutoDarkModeOverrideParams : encoding/json.Marshaler *SetAutoDarkModeOverrideParams : encoding/json.Unmarshaler func SetAutoDarkModeOverride() *SetAutoDarkModeOverrideParams func SetAutoDarkModeOverrideParams.WithEnabled(enabled bool) *SetAutoDarkModeOverrideParams
SetAutomationOverrideParams allows overriding the automation flag. Enabled bool Do executes Emulation.setAutomationOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetAutomationOverrideParams : github.com/chromedp/chromedp.Action *SetAutomationOverrideParams : github.com/chromedp/chromedp.CallAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.KeyAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.MouseAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.PollAction *SetAutomationOverrideParams : github.com/chromedp/chromedp.QueryAction SetAutomationOverrideParams : github.com/goccy/go-json.Marshaler *SetAutomationOverrideParams : github.com/goccy/go-json.Unmarshaler SetAutomationOverrideParams : github.com/mailru/easyjson.Marshaler *SetAutomationOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetAutomationOverrideParams : github.com/mailru/easyjson.Unmarshaler SetAutomationOverrideParams : encoding/json.Marshaler *SetAutomationOverrideParams : encoding/json.Unmarshaler func SetAutomationOverride(enabled bool) *SetAutomationOverrideParams
SetCPUThrottlingRateParams enables CPU throttling to emulate slow CPUs. // Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc). Do executes Emulation.setCPUThrottlingRate against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.Action *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.CallAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.EmulateAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.EvaluateAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.KeyAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.MouseAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.NavigateAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.PollAction *SetCPUThrottlingRateParams : github.com/chromedp/chromedp.QueryAction SetCPUThrottlingRateParams : github.com/goccy/go-json.Marshaler *SetCPUThrottlingRateParams : github.com/goccy/go-json.Unmarshaler SetCPUThrottlingRateParams : github.com/mailru/easyjson.Marshaler *SetCPUThrottlingRateParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetCPUThrottlingRateParams : github.com/mailru/easyjson.Unmarshaler SetCPUThrottlingRateParams : encoding/json.Marshaler *SetCPUThrottlingRateParams : encoding/json.Unmarshaler func SetCPUThrottlingRate(rate float64) *SetCPUThrottlingRateParams
SetDefaultBackgroundColorOverrideParams sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. // RGBA of the default background color. If not specified, any existing override will be cleared. Do executes Emulation.setDefaultBackgroundColorOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithColor rGBA of the default background color. If not specified, any existing override will be cleared. *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.Action *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.CallAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.KeyAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.MouseAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.PollAction *SetDefaultBackgroundColorOverrideParams : github.com/chromedp/chromedp.QueryAction SetDefaultBackgroundColorOverrideParams : github.com/goccy/go-json.Marshaler *SetDefaultBackgroundColorOverrideParams : github.com/goccy/go-json.Unmarshaler SetDefaultBackgroundColorOverrideParams : github.com/mailru/easyjson.Marshaler *SetDefaultBackgroundColorOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetDefaultBackgroundColorOverrideParams : github.com/mailru/easyjson.Unmarshaler SetDefaultBackgroundColorOverrideParams : encoding/json.Marshaler *SetDefaultBackgroundColorOverrideParams : encoding/json.Unmarshaler func SetDefaultBackgroundColorOverride() *SetDefaultBackgroundColorOverrideParams func SetDefaultBackgroundColorOverrideParams.WithColor(color *cdp.RGBA) *SetDefaultBackgroundColorOverrideParams
SetDeviceMetricsOverrideParams overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results). // Overriding device scale factor value. 0 disables the override. // If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off. // Do not set visible view size, rely upon explicit setVisibleSize call. // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. // Overriding view X position on screen in pixels (minimum 0, maximum 10000000). // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). // Scale to apply to resulting view image. // Overriding screen height value in pixels (minimum 0, maximum 10000000). // Screen orientation override. // Overriding screen width value in pixels (minimum 0, maximum 10000000). // If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions. // Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. Do executes Emulation.setDeviceMetricsOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithDisplayFeature if set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off. WithDontSetVisibleSize do not set visible view size, rely upon explicit setVisibleSize call. WithPositionX overriding view X position on screen in pixels (minimum 0, maximum 10000000). WithPositionY overriding view Y position on screen in pixels (minimum 0, maximum 10000000). WithScale scale to apply to resulting view image. WithScreenHeight overriding screen height value in pixels (minimum 0, maximum 10000000). WithScreenOrientation screen orientation override. WithScreenWidth overriding screen width value in pixels (minimum 0, maximum 10000000). WithViewport if set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions. *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.Action *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.CallAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.KeyAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.MouseAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.PollAction *SetDeviceMetricsOverrideParams : github.com/chromedp/chromedp.QueryAction SetDeviceMetricsOverrideParams : github.com/goccy/go-json.Marshaler *SetDeviceMetricsOverrideParams : github.com/goccy/go-json.Unmarshaler SetDeviceMetricsOverrideParams : github.com/mailru/easyjson.Marshaler *SetDeviceMetricsOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetDeviceMetricsOverrideParams : github.com/mailru/easyjson.Unmarshaler SetDeviceMetricsOverrideParams : encoding/json.Marshaler *SetDeviceMetricsOverrideParams : encoding/json.Unmarshaler func SetDeviceMetricsOverride(width int64, height int64, deviceScaleFactor float64, mobile bool) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithDisplayFeature(displayFeature *DisplayFeature) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithDontSetVisibleSize(dontSetVisibleSize bool) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithPositionX(positionX int64) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithPositionY(positionY int64) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithScale(scale float64) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithScreenHeight(screenHeight int64) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithScreenOrientation(screenOrientation *ScreenOrientation) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithScreenWidth(screenWidth int64) *SetDeviceMetricsOverrideParams func SetDeviceMetricsOverrideParams.WithViewport(viewport *page.Viewport) *SetDeviceMetricsOverrideParams func github.com/chromedp/chromedp.EmulateLandscape(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams) func github.com/chromedp/chromedp.EmulateMobile(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams) func github.com/chromedp/chromedp.EmulatePortrait(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams) func github.com/chromedp/chromedp.EmulateTouch(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams)
SetDisabledImageTypesParams [no description]. // Image types to disable. Do executes Emulation.setDisabledImageTypes against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetDisabledImageTypesParams : github.com/chromedp/chromedp.Action *SetDisabledImageTypesParams : github.com/chromedp/chromedp.CallAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.EmulateAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.EvaluateAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.KeyAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.MouseAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.NavigateAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.PollAction *SetDisabledImageTypesParams : github.com/chromedp/chromedp.QueryAction SetDisabledImageTypesParams : github.com/goccy/go-json.Marshaler *SetDisabledImageTypesParams : github.com/goccy/go-json.Unmarshaler SetDisabledImageTypesParams : github.com/mailru/easyjson.Marshaler *SetDisabledImageTypesParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetDisabledImageTypesParams : github.com/mailru/easyjson.Unmarshaler SetDisabledImageTypesParams : encoding/json.Marshaler *SetDisabledImageTypesParams : encoding/json.Unmarshaler func SetDisabledImageTypes(imageTypes []DisabledImageType) *SetDisabledImageTypesParams
SetDocumentCookieDisabledParams [no description]. // Whether document.coookie API should be disabled. Do executes Emulation.setDocumentCookieDisabled against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.Action *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.CallAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.EmulateAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.EvaluateAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.KeyAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.MouseAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.NavigateAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.PollAction *SetDocumentCookieDisabledParams : github.com/chromedp/chromedp.QueryAction SetDocumentCookieDisabledParams : github.com/goccy/go-json.Marshaler *SetDocumentCookieDisabledParams : github.com/goccy/go-json.Unmarshaler SetDocumentCookieDisabledParams : github.com/mailru/easyjson.Marshaler *SetDocumentCookieDisabledParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetDocumentCookieDisabledParams : github.com/mailru/easyjson.Unmarshaler SetDocumentCookieDisabledParams : encoding/json.Marshaler *SetDocumentCookieDisabledParams : encoding/json.Unmarshaler func SetDocumentCookieDisabled(disabled bool) *SetDocumentCookieDisabledParams
SetEmitTouchEventsForMouseConfiguration touch/gesture events configuration. Default: current platform. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmitTouchEventsForMouse MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the SetEmitTouchEventsForMouseConfiguration as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. SetEmitTouchEventsForMouseConfiguration : github.com/goccy/go-json.Marshaler *SetEmitTouchEventsForMouseConfiguration : github.com/goccy/go-json.Unmarshaler SetEmitTouchEventsForMouseConfiguration : github.com/mailru/easyjson.Marshaler *SetEmitTouchEventsForMouseConfiguration : github.com/mailru/easyjson.MarshalerUnmarshaler *SetEmitTouchEventsForMouseConfiguration : github.com/mailru/easyjson.Unmarshaler SetEmitTouchEventsForMouseConfiguration : encoding/json.Marshaler *SetEmitTouchEventsForMouseConfiguration : encoding/json.Unmarshaler SetEmitTouchEventsForMouseConfiguration : expvar.Var SetEmitTouchEventsForMouseConfiguration : fmt.Stringer func SetEmitTouchEventsForMouseParams.WithConfiguration(configuration SetEmitTouchEventsForMouseConfiguration) *SetEmitTouchEventsForMouseParams const SetEmitTouchEventsForMouseConfigurationDesktop const SetEmitTouchEventsForMouseConfigurationMobile
SetEmitTouchEventsForMouseParams [no description]. // Touch/gesture events configuration. Default: current platform. // Whether touch emulation based on mouse input should be enabled. Do executes Emulation.setEmitTouchEventsForMouse against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithConfiguration touch/gesture events configuration. Default: current platform. *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.Action *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.CallAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.EmulateAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.EvaluateAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.KeyAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.MouseAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.NavigateAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.PollAction *SetEmitTouchEventsForMouseParams : github.com/chromedp/chromedp.QueryAction SetEmitTouchEventsForMouseParams : github.com/goccy/go-json.Marshaler *SetEmitTouchEventsForMouseParams : github.com/goccy/go-json.Unmarshaler SetEmitTouchEventsForMouseParams : github.com/mailru/easyjson.Marshaler *SetEmitTouchEventsForMouseParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetEmitTouchEventsForMouseParams : github.com/mailru/easyjson.Unmarshaler SetEmitTouchEventsForMouseParams : encoding/json.Marshaler *SetEmitTouchEventsForMouseParams : encoding/json.Unmarshaler func SetEmitTouchEventsForMouse(enabled bool) *SetEmitTouchEventsForMouseParams func SetEmitTouchEventsForMouseParams.WithConfiguration(configuration SetEmitTouchEventsForMouseConfiguration) *SetEmitTouchEventsForMouseParams
SetEmulatedMediaParams emulates the given media type or media feature for CSS media queries. // Media features to emulate. // Media type to emulate. Empty string disables the override. Do executes Emulation.setEmulatedMedia against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithFeatures media features to emulate. WithMedia media type to emulate. Empty string disables the override. *SetEmulatedMediaParams : github.com/chromedp/chromedp.Action *SetEmulatedMediaParams : github.com/chromedp/chromedp.CallAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.EmulateAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.EvaluateAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.KeyAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.MouseAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.NavigateAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.PollAction *SetEmulatedMediaParams : github.com/chromedp/chromedp.QueryAction SetEmulatedMediaParams : github.com/goccy/go-json.Marshaler *SetEmulatedMediaParams : github.com/goccy/go-json.Unmarshaler SetEmulatedMediaParams : github.com/mailru/easyjson.Marshaler *SetEmulatedMediaParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetEmulatedMediaParams : github.com/mailru/easyjson.Unmarshaler SetEmulatedMediaParams : encoding/json.Marshaler *SetEmulatedMediaParams : encoding/json.Unmarshaler func SetEmulatedMedia() *SetEmulatedMediaParams func SetEmulatedMediaParams.WithFeatures(features []*MediaFeature) *SetEmulatedMediaParams func SetEmulatedMediaParams.WithMedia(media string) *SetEmulatedMediaParams
SetEmulatedVisionDeficiencyParams emulates the given vision deficiency. // Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies. Do executes Emulation.setEmulatedVisionDeficiency against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.Action *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.CallAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.EmulateAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.EvaluateAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.KeyAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.MouseAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.NavigateAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.PollAction *SetEmulatedVisionDeficiencyParams : github.com/chromedp/chromedp.QueryAction SetEmulatedVisionDeficiencyParams : github.com/goccy/go-json.Marshaler *SetEmulatedVisionDeficiencyParams : github.com/goccy/go-json.Unmarshaler SetEmulatedVisionDeficiencyParams : github.com/mailru/easyjson.Marshaler *SetEmulatedVisionDeficiencyParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetEmulatedVisionDeficiencyParams : github.com/mailru/easyjson.Unmarshaler SetEmulatedVisionDeficiencyParams : encoding/json.Marshaler *SetEmulatedVisionDeficiencyParams : encoding/json.Unmarshaler func SetEmulatedVisionDeficiency(typeVal SetEmulatedVisionDeficiencyType) *SetEmulatedVisionDeficiencyParams
SetEmulatedVisionDeficiencyType vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmulatedVisionDeficiency MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the SetEmulatedVisionDeficiencyType as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. SetEmulatedVisionDeficiencyType : github.com/goccy/go-json.Marshaler *SetEmulatedVisionDeficiencyType : github.com/goccy/go-json.Unmarshaler SetEmulatedVisionDeficiencyType : github.com/mailru/easyjson.Marshaler *SetEmulatedVisionDeficiencyType : github.com/mailru/easyjson.MarshalerUnmarshaler *SetEmulatedVisionDeficiencyType : github.com/mailru/easyjson.Unmarshaler SetEmulatedVisionDeficiencyType : encoding/json.Marshaler *SetEmulatedVisionDeficiencyType : encoding/json.Unmarshaler SetEmulatedVisionDeficiencyType : expvar.Var SetEmulatedVisionDeficiencyType : fmt.Stringer func SetEmulatedVisionDeficiency(typeVal SetEmulatedVisionDeficiencyType) *SetEmulatedVisionDeficiencyParams const SetEmulatedVisionDeficiencyTypeAchromatopsia const SetEmulatedVisionDeficiencyTypeBlurredVision const SetEmulatedVisionDeficiencyTypeDeuteranopia const SetEmulatedVisionDeficiencyTypeNone const SetEmulatedVisionDeficiencyTypeProtanopia const SetEmulatedVisionDeficiencyTypeReducedContrast const SetEmulatedVisionDeficiencyTypeTritanopia
SetFocusEmulationEnabledParams enables or disables simulating a focused and active page. Enabled bool Do executes Emulation.setFocusEmulationEnabled against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.Action *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.CallAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.EmulateAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.EvaluateAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.KeyAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.MouseAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.NavigateAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.PollAction *SetFocusEmulationEnabledParams : github.com/chromedp/chromedp.QueryAction SetFocusEmulationEnabledParams : github.com/goccy/go-json.Marshaler *SetFocusEmulationEnabledParams : github.com/goccy/go-json.Unmarshaler SetFocusEmulationEnabledParams : github.com/mailru/easyjson.Marshaler *SetFocusEmulationEnabledParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetFocusEmulationEnabledParams : github.com/mailru/easyjson.Unmarshaler SetFocusEmulationEnabledParams : encoding/json.Marshaler *SetFocusEmulationEnabledParams : encoding/json.Unmarshaler func SetFocusEmulationEnabled(enabled bool) *SetFocusEmulationEnabledParams
SetGeolocationOverrideParams overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. // Mock accuracy // Mock latitude // Mock longitude Do executes Emulation.setGeolocationOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithAccuracy mock accuracy. WithLatitude mock latitude. WithLongitude mock longitude. *SetGeolocationOverrideParams : github.com/chromedp/chromedp.Action *SetGeolocationOverrideParams : github.com/chromedp/chromedp.CallAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.KeyAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.MouseAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.PollAction *SetGeolocationOverrideParams : github.com/chromedp/chromedp.QueryAction SetGeolocationOverrideParams : github.com/goccy/go-json.Marshaler *SetGeolocationOverrideParams : github.com/goccy/go-json.Unmarshaler SetGeolocationOverrideParams : github.com/mailru/easyjson.Marshaler *SetGeolocationOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetGeolocationOverrideParams : github.com/mailru/easyjson.Unmarshaler SetGeolocationOverrideParams : encoding/json.Marshaler *SetGeolocationOverrideParams : encoding/json.Unmarshaler func SetGeolocationOverride() *SetGeolocationOverrideParams func SetGeolocationOverrideParams.WithAccuracy(accuracy float64) *SetGeolocationOverrideParams func SetGeolocationOverrideParams.WithLatitude(latitude float64) *SetGeolocationOverrideParams func SetGeolocationOverrideParams.WithLongitude(longitude float64) *SetGeolocationOverrideParams
SetHardwareConcurrencyOverrideParams [no description]. // Hardware concurrency to report Do executes Emulation.setHardwareConcurrencyOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.Action *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.CallAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.KeyAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.MouseAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.PollAction *SetHardwareConcurrencyOverrideParams : github.com/chromedp/chromedp.QueryAction SetHardwareConcurrencyOverrideParams : github.com/goccy/go-json.Marshaler *SetHardwareConcurrencyOverrideParams : github.com/goccy/go-json.Unmarshaler SetHardwareConcurrencyOverrideParams : github.com/mailru/easyjson.Marshaler *SetHardwareConcurrencyOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetHardwareConcurrencyOverrideParams : github.com/mailru/easyjson.Unmarshaler SetHardwareConcurrencyOverrideParams : encoding/json.Marshaler *SetHardwareConcurrencyOverrideParams : encoding/json.Unmarshaler func SetHardwareConcurrencyOverride(hardwareConcurrency int64) *SetHardwareConcurrencyOverrideParams
SetIdleOverrideParams overrides the Idle state. // Mock isScreenUnlocked // Mock isUserActive Do executes Emulation.setIdleOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetIdleOverrideParams : github.com/chromedp/chromedp.Action *SetIdleOverrideParams : github.com/chromedp/chromedp.CallAction *SetIdleOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetIdleOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetIdleOverrideParams : github.com/chromedp/chromedp.KeyAction *SetIdleOverrideParams : github.com/chromedp/chromedp.MouseAction *SetIdleOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetIdleOverrideParams : github.com/chromedp/chromedp.PollAction *SetIdleOverrideParams : github.com/chromedp/chromedp.QueryAction SetIdleOverrideParams : github.com/goccy/go-json.Marshaler *SetIdleOverrideParams : github.com/goccy/go-json.Unmarshaler SetIdleOverrideParams : github.com/mailru/easyjson.Marshaler *SetIdleOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetIdleOverrideParams : github.com/mailru/easyjson.Unmarshaler SetIdleOverrideParams : encoding/json.Marshaler *SetIdleOverrideParams : encoding/json.Unmarshaler func SetIdleOverride(isUserActive bool, isScreenUnlocked bool) *SetIdleOverrideParams
SetLocaleOverrideParams overrides default host system locale with the specified one. // ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale. Do executes Emulation.setLocaleOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithLocale iCU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale. *SetLocaleOverrideParams : github.com/chromedp/chromedp.Action *SetLocaleOverrideParams : github.com/chromedp/chromedp.CallAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.KeyAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.MouseAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.PollAction *SetLocaleOverrideParams : github.com/chromedp/chromedp.QueryAction SetLocaleOverrideParams : github.com/goccy/go-json.Marshaler *SetLocaleOverrideParams : github.com/goccy/go-json.Unmarshaler SetLocaleOverrideParams : github.com/mailru/easyjson.Marshaler *SetLocaleOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetLocaleOverrideParams : github.com/mailru/easyjson.Unmarshaler SetLocaleOverrideParams : encoding/json.Marshaler *SetLocaleOverrideParams : encoding/json.Unmarshaler func SetLocaleOverride() *SetLocaleOverrideParams func SetLocaleOverrideParams.WithLocale(locale string) *SetLocaleOverrideParams
SetPageScaleFactorParams sets a specified page scale factor. // Page scale factor. Do executes Emulation.setPageScaleFactor against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetPageScaleFactorParams : github.com/chromedp/chromedp.Action *SetPageScaleFactorParams : github.com/chromedp/chromedp.CallAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.EmulateAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.EvaluateAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.KeyAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.MouseAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.NavigateAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.PollAction *SetPageScaleFactorParams : github.com/chromedp/chromedp.QueryAction SetPageScaleFactorParams : github.com/goccy/go-json.Marshaler *SetPageScaleFactorParams : github.com/goccy/go-json.Unmarshaler SetPageScaleFactorParams : github.com/mailru/easyjson.Marshaler *SetPageScaleFactorParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetPageScaleFactorParams : github.com/mailru/easyjson.Unmarshaler SetPageScaleFactorParams : encoding/json.Marshaler *SetPageScaleFactorParams : encoding/json.Unmarshaler func SetPageScaleFactor(pageScaleFactor float64) *SetPageScaleFactorParams
SetScriptExecutionDisabledParams switches script execution in the page. // Whether script execution should be disabled in the page. Do executes Emulation.setScriptExecutionDisabled against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.Action *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.CallAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.EmulateAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.EvaluateAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.KeyAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.MouseAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.NavigateAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.PollAction *SetScriptExecutionDisabledParams : github.com/chromedp/chromedp.QueryAction SetScriptExecutionDisabledParams : github.com/goccy/go-json.Marshaler *SetScriptExecutionDisabledParams : github.com/goccy/go-json.Unmarshaler SetScriptExecutionDisabledParams : github.com/mailru/easyjson.Marshaler *SetScriptExecutionDisabledParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetScriptExecutionDisabledParams : github.com/mailru/easyjson.Unmarshaler SetScriptExecutionDisabledParams : encoding/json.Marshaler *SetScriptExecutionDisabledParams : encoding/json.Unmarshaler func SetScriptExecutionDisabled(value bool) *SetScriptExecutionDisabledParams
SetScrollbarsHiddenParams [no description]. // Whether scrollbars should be always hidden. Do executes Emulation.setScrollbarsHidden against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.Action *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.CallAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.EmulateAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.EvaluateAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.KeyAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.MouseAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.NavigateAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.PollAction *SetScrollbarsHiddenParams : github.com/chromedp/chromedp.QueryAction SetScrollbarsHiddenParams : github.com/goccy/go-json.Marshaler *SetScrollbarsHiddenParams : github.com/goccy/go-json.Unmarshaler SetScrollbarsHiddenParams : github.com/mailru/easyjson.Marshaler *SetScrollbarsHiddenParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetScrollbarsHiddenParams : github.com/mailru/easyjson.Unmarshaler SetScrollbarsHiddenParams : encoding/json.Marshaler *SetScrollbarsHiddenParams : encoding/json.Unmarshaler func SetScrollbarsHidden(hidden bool) *SetScrollbarsHiddenParams
SetTimezoneOverrideParams overrides default host system timezone with the specified one. // The timezone identifier. If empty, disables the override and restores default host system timezone. Do executes Emulation.setTimezoneOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *SetTimezoneOverrideParams : github.com/chromedp/chromedp.Action *SetTimezoneOverrideParams : github.com/chromedp/chromedp.CallAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.KeyAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.MouseAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.PollAction *SetTimezoneOverrideParams : github.com/chromedp/chromedp.QueryAction SetTimezoneOverrideParams : github.com/goccy/go-json.Marshaler *SetTimezoneOverrideParams : github.com/goccy/go-json.Unmarshaler SetTimezoneOverrideParams : github.com/mailru/easyjson.Marshaler *SetTimezoneOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetTimezoneOverrideParams : github.com/mailru/easyjson.Unmarshaler SetTimezoneOverrideParams : encoding/json.Marshaler *SetTimezoneOverrideParams : encoding/json.Unmarshaler func SetTimezoneOverride(timezoneID string) *SetTimezoneOverrideParams
SetTouchEmulationEnabledParams enables touch on platforms which do not support them. // Whether the touch event emulation should be enabled. // Maximum touch points supported. Defaults to one. Do executes Emulation.setTouchEmulationEnabled against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithMaxTouchPoints maximum touch points supported. Defaults to one. *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.Action *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.CallAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.EmulateAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.EvaluateAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.KeyAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.MouseAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.NavigateAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.PollAction *SetTouchEmulationEnabledParams : github.com/chromedp/chromedp.QueryAction SetTouchEmulationEnabledParams : github.com/goccy/go-json.Marshaler *SetTouchEmulationEnabledParams : github.com/goccy/go-json.Unmarshaler SetTouchEmulationEnabledParams : github.com/mailru/easyjson.Marshaler *SetTouchEmulationEnabledParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetTouchEmulationEnabledParams : github.com/mailru/easyjson.Unmarshaler SetTouchEmulationEnabledParams : encoding/json.Marshaler *SetTouchEmulationEnabledParams : encoding/json.Unmarshaler func SetTouchEmulationEnabled(enabled bool) *SetTouchEmulationEnabledParams func SetTouchEmulationEnabledParams.WithMaxTouchPoints(maxTouchPoints int64) *SetTouchEmulationEnabledParams func github.com/chromedp/chromedp.EmulateLandscape(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams) func github.com/chromedp/chromedp.EmulateMobile(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams) func github.com/chromedp/chromedp.EmulatePortrait(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams) func github.com/chromedp/chromedp.EmulateTouch(p1 *SetDeviceMetricsOverrideParams, p2 *SetTouchEmulationEnabledParams)
SetUserAgentOverrideParams allows overriding user agent with the given string. // Browser langugage to emulate. // The platform navigator.platform should return. // User agent to use. // To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData Do executes Emulation.setUserAgentOverride against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithAcceptLanguage browser langugage to emulate. WithPlatform the platform navigator.platform should return. WithUserAgentMetadata to be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData. *SetUserAgentOverrideParams : github.com/chromedp/chromedp.Action *SetUserAgentOverrideParams : github.com/chromedp/chromedp.CallAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.EmulateAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.EvaluateAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.KeyAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.MouseAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.NavigateAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.PollAction *SetUserAgentOverrideParams : github.com/chromedp/chromedp.QueryAction SetUserAgentOverrideParams : github.com/goccy/go-json.Marshaler *SetUserAgentOverrideParams : github.com/goccy/go-json.Unmarshaler SetUserAgentOverrideParams : github.com/mailru/easyjson.Marshaler *SetUserAgentOverrideParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetUserAgentOverrideParams : github.com/mailru/easyjson.Unmarshaler SetUserAgentOverrideParams : encoding/json.Marshaler *SetUserAgentOverrideParams : encoding/json.Unmarshaler func SetUserAgentOverride(userAgent string) *SetUserAgentOverrideParams func SetUserAgentOverrideParams.WithAcceptLanguage(acceptLanguage string) *SetUserAgentOverrideParams func SetUserAgentOverrideParams.WithPlatform(platform string) *SetUserAgentOverrideParams func SetUserAgentOverrideParams.WithUserAgentMetadata(userAgentMetadata *UserAgentMetadata) *SetUserAgentOverrideParams
SetVirtualTimePolicyParams turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. // If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent. // If set, base::Time::Now will be overridden to initially return this value. // If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock. Policy VirtualTimePolicy Do executes Emulation.setVirtualTimePolicy against the provided context. returns: virtualTimeTicksBase - Absolute timestamp at which virtual time was first enabled (up time in milliseconds). MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBudget if set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent. WithInitialVirtualTime if set, base::Time::Now will be overridden to initially return this value. WithMaxVirtualTimeTaskStarvationCount if set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock. SetVirtualTimePolicyParams : github.com/goccy/go-json.Marshaler *SetVirtualTimePolicyParams : github.com/goccy/go-json.Unmarshaler SetVirtualTimePolicyParams : github.com/mailru/easyjson.Marshaler *SetVirtualTimePolicyParams : github.com/mailru/easyjson.MarshalerUnmarshaler *SetVirtualTimePolicyParams : github.com/mailru/easyjson.Unmarshaler SetVirtualTimePolicyParams : encoding/json.Marshaler *SetVirtualTimePolicyParams : encoding/json.Unmarshaler func SetVirtualTimePolicy(policy VirtualTimePolicy) *SetVirtualTimePolicyParams func SetVirtualTimePolicyParams.WithBudget(budget float64) *SetVirtualTimePolicyParams func SetVirtualTimePolicyParams.WithInitialVirtualTime(initialVirtualTime *cdp.TimeSinceEpoch) *SetVirtualTimePolicyParams func SetVirtualTimePolicyParams.WithMaxVirtualTimeTaskStarvationCount(maxVirtualTimeTaskStarvationCount int64) *SetVirtualTimePolicyParams
SetVirtualTimePolicyReturns return values. // Absolute timestamp at which virtual time was first enabled (up time in milliseconds). MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface SetVirtualTimePolicyReturns : github.com/goccy/go-json.Marshaler *SetVirtualTimePolicyReturns : github.com/goccy/go-json.Unmarshaler SetVirtualTimePolicyReturns : github.com/mailru/easyjson.Marshaler *SetVirtualTimePolicyReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *SetVirtualTimePolicyReturns : github.com/mailru/easyjson.Unmarshaler SetVirtualTimePolicyReturns : encoding/json.Marshaler *SetVirtualTimePolicyReturns : encoding/json.Unmarshaler
UserAgentBrandVersion used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-UserAgentBrandVersion Brand string Version string MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface UserAgentBrandVersion : github.com/goccy/go-json.Marshaler *UserAgentBrandVersion : github.com/goccy/go-json.Unmarshaler UserAgentBrandVersion : github.com/mailru/easyjson.Marshaler *UserAgentBrandVersion : github.com/mailru/easyjson.MarshalerUnmarshaler *UserAgentBrandVersion : github.com/mailru/easyjson.Unmarshaler UserAgentBrandVersion : encoding/json.Marshaler *UserAgentBrandVersion : encoding/json.Unmarshaler
UserAgentMetadata used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-UserAgentMetadata Architecture string Bitness string // Brands appearing in Sec-CH-UA. // Brands appearing in Sec-CH-UA-Full-Version-List. Mobile bool Model string Platform string PlatformVersion string Wow64 bool MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface UserAgentMetadata : github.com/goccy/go-json.Marshaler *UserAgentMetadata : github.com/goccy/go-json.Unmarshaler UserAgentMetadata : github.com/mailru/easyjson.Marshaler *UserAgentMetadata : github.com/mailru/easyjson.MarshalerUnmarshaler *UserAgentMetadata : github.com/mailru/easyjson.Unmarshaler UserAgentMetadata : encoding/json.Marshaler *UserAgentMetadata : encoding/json.Unmarshaler func SetUserAgentOverrideParams.WithUserAgentMetadata(userAgentMetadata *UserAgentMetadata) *SetUserAgentOverrideParams
VirtualTimePolicy advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#type-VirtualTimePolicy MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the VirtualTimePolicy as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. VirtualTimePolicy : github.com/goccy/go-json.Marshaler *VirtualTimePolicy : github.com/goccy/go-json.Unmarshaler VirtualTimePolicy : github.com/mailru/easyjson.Marshaler *VirtualTimePolicy : github.com/mailru/easyjson.MarshalerUnmarshaler *VirtualTimePolicy : github.com/mailru/easyjson.Unmarshaler VirtualTimePolicy : encoding/json.Marshaler *VirtualTimePolicy : encoding/json.Unmarshaler VirtualTimePolicy : expvar.Var VirtualTimePolicy : fmt.Stringer func SetVirtualTimePolicy(policy VirtualTimePolicy) *SetVirtualTimePolicyParams const VirtualTimePolicyAdvance const VirtualTimePolicyPause const VirtualTimePolicyPauseIfNetworkFetchesPending
Package-Level Functions (total 27)
ResetPageScaleFactor requests that page scale factor is reset to initial values. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-resetPageScaleFactor
SetAutoDarkModeOverride automatically render all web contents using a dark theme. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setAutoDarkModeOverride parameters:
SetAutomationOverride allows overriding the automation flag. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setAutomationOverride parameters: enabled - Whether the override should be enabled.
SetCPUThrottlingRate enables CPU throttling to emulate slow CPUs. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setCPUThrottlingRate parameters: rate - Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
SetDefaultBackgroundColorOverride sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDefaultBackgroundColorOverride parameters:
SetDeviceMetricsOverride overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results). See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDeviceMetricsOverride parameters: width - Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. height - Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. deviceScaleFactor - Overriding device scale factor value. 0 disables the override. mobile - Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
SetDisabledImageTypes [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDisabledImageTypes parameters: imageTypes - Image types to disable.
SetDocumentCookieDisabled [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setDocumentCookieDisabled parameters: disabled - Whether document.coookie API should be disabled.
SetEmitTouchEventsForMouse [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmitTouchEventsForMouse parameters: enabled - Whether touch emulation based on mouse input should be enabled.
SetEmulatedMedia emulates the given media type or media feature for CSS media queries. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmulatedMedia parameters:
SetEmulatedVisionDeficiency emulates the given vision deficiency. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setEmulatedVisionDeficiency parameters: type - Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.
SetFocusEmulationEnabled enables or disables simulating a focused and active page. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setFocusEmulationEnabled parameters: enabled - Whether to enable to disable focus emulation.
SetGeolocationOverride overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setGeolocationOverride parameters:
SetHardwareConcurrencyOverride [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setHardwareConcurrencyOverride parameters: hardwareConcurrency - Hardware concurrency to report
SetIdleOverride overrides the Idle state. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setIdleOverride parameters: isUserActive - Mock isUserActive isScreenUnlocked - Mock isScreenUnlocked
SetLocaleOverride overrides default host system locale with the specified one. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setLocaleOverride parameters:
SetPageScaleFactor sets a specified page scale factor. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setPageScaleFactor parameters: pageScaleFactor - Page scale factor.
SetScriptExecutionDisabled switches script execution in the page. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setScriptExecutionDisabled parameters: value - Whether script execution should be disabled in the page.
SetScrollbarsHidden [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setScrollbarsHidden parameters: hidden - Whether scrollbars should be always hidden.
SetTimezoneOverride overrides default host system timezone with the specified one. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setTimezoneOverride parameters: timezoneID - The timezone identifier. If empty, disables the override and restores default host system timezone.
SetTouchEmulationEnabled enables touch on platforms which do not support them. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setTouchEmulationEnabled parameters: enabled - Whether the touch event emulation should be enabled.
SetUserAgentOverride allows overriding user agent with the given string. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setUserAgentOverride parameters: userAgent - User agent to use.
SetVirtualTimePolicy turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. See: https://chromedevtools.github.io/devtools-protocol/tot/Emulation#method-setVirtualTimePolicy parameters: policy
Package-Level Constants (total 47)
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
DisabledImageType values.
DisabledImageType values.
DisplayFeatureOrientation values.
DisplayFeatureOrientation values.
OrientationType values.
OrientationType values.
OrientationType values.
OrientationType values.
SetEmitTouchEventsForMouseConfiguration values.
SetEmitTouchEventsForMouseConfiguration values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
VirtualTimePolicy values.
VirtualTimePolicy values.
VirtualTimePolicy values.