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

Method grabNetworkConnection

lib/helper/Appium.js:833–842  ·  view source on GitHub ↗

* Get information about the current network connection (Data/WIFI/Airplane). * The actual server value will be a number. However WebdriverIO additional * properties to the response object to allow easier assertions. * * ```js * let con = await I.grabNetworkConnection(); * ``` *

()

Source from the content-addressed store, hash-verified

831 * Appium: support only Android
832 */
833 async grabNetworkConnection() {
834 onlyForApps.call(this, supportedPlatform.android)
835 const res = await this.browser.getNetworkConnection()
836 return {
837 value: res,
838 inAirplaneMode: res.inAirplaneMode,
839 hasWifi: res.hasWifi,
840 hasData: res.hasData,
841 }
842 }
843
844 /**
845 * Get current orientation.

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