Table of Contents

Class ChromiumMobileEmulationDeviceSettings

Namespace
OpenQA.Selenium.Chromium
Assembly
WebDriver.dll

Represents the type-safe options for setting settings for emulating a mobile device in the Chromium browser.

public class ChromiumMobileEmulationDeviceSettings
Inheritance
ChromiumMobileEmulationDeviceSettings
Inherited Members

Constructors

ChromiumMobileEmulationDeviceSettings()

Initializes a new instance of the ChromiumMobileEmulationDeviceSettings class.

public ChromiumMobileEmulationDeviceSettings()

ChromiumMobileEmulationDeviceSettings(string)

Initializes a new instance of the ChromiumMobileEmulationDeviceSettings class.

public ChromiumMobileEmulationDeviceSettings(string userAgent)

Parameters

userAgent string

The user agent string to be used by the browser when emulating a mobile device.

Properties

EnableTouchEvents

Gets or sets a value indicating whether touch events should be enabled by the browser when emulating a mobile device. Defaults to true.

public bool EnableTouchEvents { get; set; }

Property Value

bool

Height

Gets or sets the height in pixels to be used by the browser when emulating a mobile device.

public long Height { get; set; }

Property Value

long

PixelRatio

Gets or sets the pixel ratio to be used by the browser when emulating a mobile device.

public double PixelRatio { get; set; }

Property Value

double

UserAgent

Gets or sets the user agent string to be used by the browser when emulating a mobile device.

public string UserAgent { get; set; }

Property Value

string

Width

Gets or sets the width in pixels to be used by the browser when emulating a mobile device.

public long Width { get; set; }

Property Value

long