تخطى إلى المحتوى الرئيسي

shake

Perform a shake action on the device. Supports iOS Simulator and real devices.

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

Usage

await browser.shake()

Example

shake.js
it('should shake the device', async () => {
await browser.shake()
})

Support

Support for ios

Supported platforms: iOS

ملاحظة

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

Welcome! How can I help?

WebdriverIO AI Copilot