메인 컨텐츠로 건너뛰기

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​

await 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

Supported platforms: Android

참고

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

Welcome! How can I help?

WebdriverIO AI Copilot