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

toggleLocationServices

Toggle the state of the location service.

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

Usage
browser.toggleLocationServices()
Example
toggleLocationServices.js
it('should toggle location services', async () => {
await browser.toggleLocationServices()
})
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