0

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

2 Answers2

1

adb shell reboot -p power off device

adb reboot -p restart the device

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