Zum Hauptinhalt springen

gsmCall

Make a GSM call on the Android emulator. Valid actions: 'call', 'accept', 'cancel', 'hold'.

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

Usage
browser.gsmCall(phoneNumber, action)
Parameters
NameTypeDetails
phoneNumberstringThe phone number to use for the GSM call simulation
actionstringThe action to perform ('call', 'accept', 'cancel', 'hold')
Example
gsmCall.js
it('should simulate a GSM call', async () => {
// Simulate an incoming call
await browser.gsmCall('+15551234567', 'call')
// Accept the call
await browser.gsmCall('+15551234567', 'accept')
})
Support

Support for android

Hinweis

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

Welcome! How can I help?

WebdriverIO AI Copilot