முக்கிய உள்ளடக்கத்திற்குச் செல்லவும்

gsmSignal

Set the GSM signal strength on the Android emulator.

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

Usage
browser.gsmSignal(signalStrength)
Parameters
NameTypeDetails
signalStrengthnumberThe signal strength to set. Accepted values: 0 (no signal), 1 (very poor), 2 (poor), 3 (moderate), 4 (good/full)
Example
gsmSignal.js
it('should set GSM signal to full strength', async () => {
await browser.gsmSignal(4)
})
it('should set GSM signal to no signal', async () => {
await browser.gsmSignal(0)
})
Support

Support for android

குறிப்பு

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

Welcome! How can I help?

WebdriverIO AI Copilot