mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 07:52:13 +08:00
fix: brighten should be executed before unlock
This commit is contained in:
@@ -1 +1 @@
|
|||||||
v5.0.0+2412041737
|
v5.0.0+2412042204
|
||||||
|
|||||||
@@ -193,10 +193,11 @@ func (dev *AndroidDevice) Options() (deviceOptions []AndroidDeviceOption) {
|
|||||||
func (dev *AndroidDevice) Init() error {
|
func (dev *AndroidDevice) Init() error {
|
||||||
dev.d.RunShellCommand("ime", "enable", "io.appium.settings/.UnicodeIME")
|
dev.d.RunShellCommand("ime", "enable", "io.appium.settings/.UnicodeIME")
|
||||||
dev.d.RunShellCommand("rm", "-r", config.DeviceActionLogFilePath)
|
dev.d.RunShellCommand("rm", "-r", config.DeviceActionLogFilePath)
|
||||||
// unlock android device screen
|
// Notice: brighten should be executed before unlock
|
||||||
dev.d.RunShellCommand("input", "keyevent", "82")
|
|
||||||
// brighten android device screen
|
// brighten android device screen
|
||||||
dev.d.RunShellCommand("input", "keyevent", "224")
|
dev.d.RunShellCommand("input", "keyevent", "224")
|
||||||
|
// unlock android device screen
|
||||||
|
dev.d.RunShellCommand("input", "keyevent", "82")
|
||||||
|
|
||||||
if dev.UIA2 {
|
if dev.UIA2 {
|
||||||
// uiautomator2 server must be started before
|
// uiautomator2 server must be started before
|
||||||
|
|||||||
Reference in New Issue
Block a user