mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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 {
|
||||
dev.d.RunShellCommand("ime", "enable", "io.appium.settings/.UnicodeIME")
|
||||
dev.d.RunShellCommand("rm", "-r", config.DeviceActionLogFilePath)
|
||||
// unlock android device screen
|
||||
dev.d.RunShellCommand("input", "keyevent", "82")
|
||||
// Notice: brighten should be executed before unlock
|
||||
// brighten android device screen
|
||||
dev.d.RunShellCommand("input", "keyevent", "224")
|
||||
// unlock android device screen
|
||||
dev.d.RunShellCommand("input", "keyevent", "82")
|
||||
|
||||
if dev.UIA2 {
|
||||
// uiautomator2 server must be started before
|
||||
|
||||
Reference in New Issue
Block a user