uiautomator icon indicating copy to clipboard operation
uiautomator copied to clipboard

uiautomator

Open pengyanbing84 opened this issue 5 years ago • 1 comments

How to adjust the brightness of the phone to strengthen? How do I press and hold the power button to turn it off?

pengyanbing84 avatar Aug 27 '19 02:08 pengyanbing84

Hi @pengyanbing84 , As I know there no any implementation to adjust brightness in uiautomatior. Even though there is an implementation for long click [e.g.: d.long_click(x, y)] you cannot long press the power button. Direct power button press is only implemented for single click. So, for both actions you may use ADB commands (you can do this using Python). e.g.: Use ADB command to long press power button. then click shutdown button using uiautomator.

TRap-github avatar Aug 28 '19 03:08 TRap-github