Zum Hauptinhalt springen

sendSms

Simulate an SMS message being received 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

await browser.sendSms(phoneNumber, message)

Parameters

NameTypeDetails
phoneNumberstringThe phone number the simulated SMS is sent from
messagestringThe text content of the simulated SMS

Example

sendSms.js
it('should simulate receiving an SMS', async () => {
await browser.sendSms('+15551234567', 'Hello from the test!')
})

Support

Support for android

Supported platforms: 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