Vai al contenuto principale
🇺🇦  We stand with the people of Ukraine. We encourage compassion, and hope for peace.   🇺🇦
Please support humanitarian efforts for the Ukraine crisis through the International Committee of the Red Cross! #StandWithUkraine

toggleNetworkSpeed

Set the network speed for the Android emulator. Valid values: 'full', 'gsm', 'edge', 'hscsd', 'gprs', 'umts', 'hsdpa', 'lte', 'evdo'.

Note: Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the mobile: execute method.

Usage
browser.toggleNetworkSpeed(netspeed)
Parameters
NameTypeDetails
netspeedstringThe network speed preset to apply ('full', 'gsm', 'edge', 'hscsd', 'gprs', 'umts', 'hsdpa', 'lte', 'evdo')
Example
toggleNetworkSpeed.js
it('should set network speed to LTE', async () => {
await browser.toggleNetworkSpeed('lte')
})
Support

Support for android

nota

Refer to the official Appium driver documentation to see which driver versions support this command.

Welcome! How can I help?

WebdriverIO AI Copilot
Morty Proxy This is a proxified and sanitized view of the page, visit original site.