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

Method enableMobile

javascript/selenium-webdriver/firefox.js:384–394  ·  view source on GitHub ↗

* Enables Mobile start up features * * @param {string} androidPackage The package to use * @return {!Options} A self reference

(androidPackage = 'org.mozilla.firefox', androidActivity = null, deviceSerial = null)

Source from the content-addressed store, hash-verified

382 * @return {!Options} A self reference
383 */
384 enableMobile(androidPackage = 'org.mozilla.firefox', androidActivity = null, deviceSerial = null) {
385 this.firefoxOptions_().androidPackage = androidPackage
386
387 if (androidActivity) {
388 this.firefoxOptions_().androidActivity = androidActivity
389 }
390 if (deviceSerial) {
391 this.firefoxOptions_().deviceSerial = deviceSerial
392 }
393 return this
394 }
395
396 /**
397 * Enables moz:debuggerAddress for firefox cdp

Callers 1

options_test.jsFile · 0.80

Calls 1

firefoxOptions_Method · 0.95

Tested by

no test coverage detected