MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / setMobileEmulation

Method setMobileEmulation

javascript/selenium-webdriver/chromium.js:532–535  ·  view source on GitHub ↗

* Configures the browser to emulate a mobile device. For more information, refer * to the ChromeDriver project page on [mobile emulation][em]. Configuration * options include: * * - `deviceName`: The name of a pre-configured [emulated device][devem] * - `width`: screen width, in pixel

(config)

Source from the content-addressed store, hash-verified

530 * @return {!Options} A self reference.
531 */
532 setMobileEmulation(config) {
533 this.options_.mobileEmulation = config
534 return this
535 }
536
537 /**
538 * Sets a list of the window types that will appear when getting window

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected