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

Method enableMobile

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

287 * @return {!Options} A self reference
288 */
289 enableMobile(androidPackage = 'org.mozilla.firefox', androidActivity = null, deviceSerial = null) {
290 this.firefoxOptions_().androidPackage = androidPackage
291
292 if (androidActivity) {
293 this.firefoxOptions_().androidActivity = androidActivity
294 }
295 if (deviceSerial) {
296 this.firefoxOptions_().deviceSerial = deviceSerial
297 }
298 return this
299 }
300
301 /**
302 * 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