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
adb shell reboot -p power off device
adb reboot -p restart the device
Power on/off using Appium commands