I am trying to Power on/off a device using appium. I modified Webdriver.py in Appium python client. I added a function and command for power off. Its not working. Can anyone help me with Appium commands for power on/off. PS - I can not use adb commands
Asked
Active
Viewed 1,099 times
2 Answers
1
adb shell reboot -p
power off device
adb reboot -p
restart the device

Shiva Krishna Chippa
- 678
- 2
- 9
- 22
0
I'm interested what function you added, because Appium server does not support device power on/off out of box, the only way you can do it is to use adb
directly

dmle
- 3,498
- 1
- 14
- 22