ChromeOptionsEnableMobileEmulation Method (String)WebDriver
Allows the Chrome browser to emulate a mobile device.

Namespace: OpenQA.Selenium.Chrome
Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
Syntax

public void EnableMobileEmulation(
	string deviceName
)

Parameters

deviceName
Type: SystemString
The name of the device to emulate. The device name must be a valid device name from the Chrome DevTools Emulation panel.
Remarks

Specifying an invalid device name will not throw an exeption, but will generate an error in Chrome when the driver starts. To unset mobile emulation, call this method with as the argument.
See Also

Reference