MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / enableMobile

Method enableMobile

javascript/selenium-webdriver/firefox.js:385–395  ·  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

383 * @return {!Options} A self reference
384 */
385 enableMobile(androidPackage = 'org.mozilla.firefox', androidActivity = null, deviceSerial = null) {
386 this.firefoxOptions_().androidPackage = androidPackage
387
388 if (androidActivity) {
389 this.firefoxOptions_().androidActivity = androidActivity
390 }
391 if (deviceSerial) {
392 this.firefoxOptions_().deviceSerial = deviceSerial
393 }
394 return this
395 }
396
397 /**
398 * 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