MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / setNetworkConnection

Method setNetworkConnection

lib/helper/Appium.js:979–982  ·  view source on GitHub ↗

* Set network connection mode. * * * airplane mode * * wifi mode * * data data * * ```js * I.setNetworkConnection(0) // airplane mode off, wifi off, data off * I.setNetworkConnection(1) // airplane mode on, wifi off, data off * I.setNetworkConnection(2) // airplane mode of

(value)

Source from the content-addressed store, hash-verified

977 * @return {Promise<number>}
978 */
979 async setNetworkConnection(value) {
980 onlyForApps.call(this, supportedPlatform.android)
981 return this.browser.setNetworkConnection(value)
982 }
983
984 /**
985 * Update the current setting on the device

Callers 3

Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected