powerAC
Set the state of the battery charger on the Android emulator. Valid values: 'on', 'off'.
Usage​
await browser.powerAC(state)
Parameters​
| Name | Type | Details |
|---|---|---|
state | string | The charger state to set ('on' or 'off') |
Example​
powerAC.js
it('should enable the AC charger', async () => {
await browser.powerAC('on')
})
Support​
Supported platforms: Android
note
Refer to the official Appium driver documentation to see which driver versions support this command.