Table of Contents

Class ChromeMobileEmulationDeviceSettings

Namespace
OpenQA.Selenium.Chrome
Assembly
WebDriver.dll

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

public class ChromeMobileEmulationDeviceSettings
Inheritance
ChromeMobileEmulationDeviceSettings
Inherited Members

Constructors

ChromeMobileEmulationDeviceSettings()

Initializes a new instance of the ChromeMobileEmulationDeviceSettings class.

public ChromeMobileEmulationDeviceSettings()

ChromeMobileEmulationDeviceSettings(string)

Initializes a new instance of the ChromeMobileEmulationDeviceSettings class.

public ChromeMobileEmulationDeviceSettings(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