UNPKG

webdriverio

Version:

Next-gen browser and mobile automation test framework for Node.js

27 lines 869 B
/** * * Set the WiFi state on the device. * * > **Note:** Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the `mobile:` execute method. * * :::note * Unlike the deprecated API which toggled the WiFi state, this command requires an explicit * `enabled` parameter to set the desired state directly. * * This command is only supported on Android. * ::: * * <example> :toggleWiFi.js it('should set WiFi state', async () => { await browser.toggleWiFi(true) // enable WiFi await browser.toggleWiFi(false) // disable WiFi }) * </example> * * @param {boolean} enabled Set to `true` to enable WiFi, `false` to disable it. * * @support ["android"] */ export declare function toggleWiFi(this: WebdriverIO.Browser, enabled: boolean): Promise<unknown>; //# sourceMappingURL=toggleWiFi.d.ts.map