appium / appium

Cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol
http://appium.io/
Apache License 2.0
18.69k stars 6.06k forks source link

Unhandled rejection Error: Error executing adbExec #11750

Closed Ucoon closed 5 years ago

Ucoon commented 5 years ago

The problem

When I am trying to run test cases in more than 1 devices parallely(in my case i connected 2 devices), then 2 of the appium server reports the error:

[debug] [ADB] Running 'E:\Tools\Android\adt-bundle-windows-x86-20140321\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe -P 5037 -s SA17C07838 shell am force-stop com.android.settings'
[Appium] Closing session, cause was 'UiAUtomator shut down unexpectedly'
[Appium] Removing session 26b8d138-ec95-478e-80d0-8f46afc225b9 from our master session list
[ADB] Error sending command, reconnecting device and retrying: shell,am,force-stop,com.android.settings
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 0 device(s) connected
[debug] [ADB] Could not find devices, restarting adb server...
[debug] [ADB] Restarting adb
[debug] [ADB] Killing adb server on port 5037
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'E:\Tools\Android\adt-bundle-windows-x86-20140321\adt-bundle-windows-x86-20140321\sdk\platform-tools\adb.exe -P 5037 -s SA17C07838 shell am force-stop com.android.settings'
[ADB] Error sending command, reconnecting device and retrying: shell,am,force-stop,com.android.settings
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
Unhandled rejection Error: Error executing adbExec. Original error: 'Command 'E\:\\Tools\\Android\\adt-bundle-windows-x86-20140321\\adt-bundle-windows-x86-20140321\\sdk\\platform-tools\\adb.exe -P 5037 -s SA17C07838 shell am force-stop com.android.settings' exited with code 4294967295'; Stderr: 'error: device not found'; Code: '4294967295'
    at ADB.execFunc$ (C:\Users\hezj\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:327:13)
    at tryCatch (C:\Users\hezj\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\hezj\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\hezj\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
    at GeneratorFunctionPrototype.invoke (C:\Users\hezj\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
    at <anonymous>

Environment

Details

In my case, i have rebooted devices, but it executed well when i connected one device. However, when i connected 2 devices, there exists someprolems. Appium Launched in 2 different instances using command mode

C:\Users\ucoon\AppData\Local\Programs\Appium\resources\app\node_modules\appium\build\lib
>  node main.js --relaxed-security -p 4723 -bp 4724 -U SA17C07838

C:\Users\ucoon\AppData\Local\Programs\Appium\resources\app\node_modules\appium\build\lib
> node main.js --relaxed-security -p 4725 -bp 4726 -U SA17806148
mykola-mokhnach commented 5 years ago

Do you follow https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/parallel-tests.md ?

Ucoon commented 5 years ago

Yes, i did as the page said, but once the devices rebooted, the case failed( i connected 2 devices). I rebooted the device, and try to reconnect the server.

imurchie commented 5 years ago

The Unhandled rejection should not be there, but it is not reproducible with the latest release. The error may still be there, but it should at least be handled.

Ucoon commented 5 years ago

I run my testcase with appium desktop(lastest version 1.8.2), it still falied. I also run my testcase with appium server(lastest version 1.10.0), it failed too. This is server log:

[Appium] Welcome to Appium v1.10.0
[Appium] Non-default server args:
[Appium]   port: 4725
[Appium]   bootstrapPort: 4726
[Appium]   relaxedSecurityEnabled: true
[Appium]   udid: SA17806148
[Appium] Deprecated server args:
[Appium]   -U,--udid => --default-capabilities '{"udid":"SA17806148"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium]   udid: SA17806148
[Appium] Appium REST http interface listener started on 0.0.0.0:4725
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:platformVersion":"5.0","appium:deviceName":"SA17806148","appium:appPackage":"com.android.settings","appium:appActivity":".Settings","appium:newCommandTimeout":"100000","appium:noReset":"true"}},"desiredCapabilities":{"platformName":"Android","platformVersion":"5.0","deviceName":"SA17806148","appPackage":"com.android.settings","appActivity":".Settings","newCommandTimeout":"100000","noReset":"true"}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"5.0","deviceName":"SA17806148","appPackage":"com.android.settings","appActivity":".Settings","newCommandTimeout":"100000","noReset":"true"},null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android","appium:platformVersion":"5.0","appium:deviceName":"SA17806148","appium:appPackage":"com.android.settings","appium:appActivity":".Settings","appium:newCommandTimeout":"100000","appium:noReset":"true"}}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1543456534957 (09:55:34 GMT+0800 (CST))
[BaseDriver] The capabilities ["udid"] are not standard capabilities and should have an extension prefix
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.
[Appium] Creating new AndroidDriver (v4.7.0) session
[Appium] Capabilities:
[Appium]   platformName: Android
[Appium]   platformVersion: 5.0
[Appium]   deviceName: SA17806148
[Appium]   appPackage: com.android.settings
[Appium]   appActivity: .Settings
[Appium]   newCommandTimeout: 100000
[Appium]   noReset: true
[Appium]   udid: SA17806148
[Appium] Applying relaxed security to 'AndroidDriver' as per server command line argument
[debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"udid":"SA17806148","platf... were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[BaseDriver] Boolean capability passed in as string. Functionality may be compromised.
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] Capability 'newCommandTimeout' changed from string ('100000') to integer (100000). This may cause unexpected behavior
[BaseDriver] Session created with session id: d8b5b128-3112-471e-94a9-9b282cd527b1
[AndroidDriver] Java version is: 1.8.0_181
[ADB] Checking whether adb is present
[ADB] Found 3 'build-tools' folders under '/home/hezj/Software/AndroidStudio/SDK/' (newest first):
[ADB]     /home/hezj/Software/AndroidStudio/SDK/build-tools/28.0.3
[ADB]     /home/hezj/Software/AndroidStudio/SDK/build-tools/28.0.2
[ADB]     /home/hezj/Software/AndroidStudio/SDK/build-tools/27.0.3
[ADB] Using adb from /home/hezj/Software/AndroidStudio/SDK/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 2 device(s) connected
[AndroidDriver] Using device: SA17806148
[debug] [ADB] Setting device id to SA17806148
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 21
[debug] [ADB] Device API level: 21
[AndroidDriver] App file was not listed, instead we're going to run com.android.settings directly on the device
[debug] [AndroidDriver] Checking whether package is present on the device
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell pm list packages com.android.settings'
[AndroidDriver] Starting Android session
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 wait-for-device'
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell dumpsys package io.appium.settings'
[ADB] Checking whether aapt is present
[ADB] Using aapt from /home/hezj/Software/AndroidStudio/SDK/build-tools/28.0.3/aapt
[debug] [ADB] The installed 'io.appium.settings' package is older than '/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_io.appium.settings@2.11.0@io.appium.settings/apks/settings_apk-debug.apk' (5 < 13 or '2.3.0' < '2.11.0')'. Executing upgrade
[debug] [ADB] Device API level: 21
[debug] [ADB] Skipping permissions grant option, since the current API level 21 does not support applications permissions customization
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 install -r /home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_io.appium.settings\@2.11.0\@io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Install command stdout: [100%] /data/local/tmp/settings_apk-debug.apk
[debug] [ADB] /home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_io.appium.settings...the new user identifier of the user.
[debug] [ADB] 
[debug] [ADB] pm remove-user: remove the user with the given USER_IDENTIFIER,
[debug] [ADB]   deleting all data associated with that user
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell ps'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Device API level: 21
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell settings put secure mock_location 1'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[ADB] Getting device platform version
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 5.0
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell wm size'
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': M5-53
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell getprop ro.product.manufacturer'
[debug] [ADB] Current device property 'ro.product.manufacturer': alps
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [AndroidDriver] No app capability. Assuming it is already on the device
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4726 to device: 4724
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 forward tcp\:4726 tcp\:4724'
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state 'starting'
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 push /home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver\@4.7.0\@appium-android-driver/bootstrap/bin/AppiumBootstrap.jar /data/local/tmp/'
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell ps'
[ADB] No 'uiautomator' process has been found
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","SA17806148","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.android.settings","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[debug] [UiAutomator] Moving to state 'online'
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell dumpsys window'
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Device API level: 21
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell am start -W -n com.android.settings/.Settings -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[Appium] New AndroidDriver session created successfully, session d8b5b128-3112-471e-94a9-9b282cd527b1 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1543456540536 (09:55:40 GMT+0800 (CST))
[debug] [W3C (d8b5b128)] Cached the protocol value 'W3C' for the new session d8b5b128-3112-471e-94a9-9b282cd527b1
[debug] [W3C (d8b5b128)] Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"5.0","deviceName":"SA17806148","appPackage":"com.android.settings","appActivity":".Settings","newCommandTimeout":100000,"noReset":true,"udid":"SA17806148"},"platformName":"Android","platformVersion":"5.0","deviceName":"SA17806148","appPackage":"com.android.settings","appActivity":".Settings","newCommandTimeout":100000,"noReset":true,"udid":"SA17806148","deviceUDID":"SA17806148","deviceScreenSize":"540x960","deviceModel":"M5-53","deviceManufacturer":"alps"}}
[HTTP] <-- POST /wd/hub/session 200 5593 ms - 788
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/execute/sync
[HTTP] {"script":"mobile:shell","args":[{"command":"ls /mnt/sdcard2","includeStderr":true,"timeout":20000}],"sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.execute() with args: ["mobile:shell",[{"command":"ls /mnt/sdcard2","includeStderr":true,"timeout":20000}],"d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [AndroidDriver] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell 'ls /mnt/sdcard2''
[debug] [W3C (d8b5b128)] Responding to client with driver.execute() result: {"stdout":"/mnt/sdcard2\r\n","stderr":""}
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/execute/sync 200 45 ms - 51
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/appium/device/start_activity
[HTTP] {"appPackage":"com.my.myupdateinstaller","appActivity":".MyUpdateInstallerActivity","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.startActivity() with args: ["com.my.myupdateinstaller",".MyUpdateInstallerActivity",null,null,null,null,null,null,null,"d8b5b128-3112-471e-94a9-9b282cd527b1",null,"d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [AndroidDriver] Starting package 'com.my.myupdateinstaller' and activity '.MyUpdateInstallerActivity'
[debug] [ADB] Device API level: 21
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell am start -W -n com.my.myupdateinstaller/.MyUpdateInstallerActivity -S'
[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'com.my.myupdateinstaller' and activity: '.MyUpdateInstallerActivity' to be focused
[debug] [ADB] Possible activities, to be checked: 'com.my.myupdateinstaller.MyUpdateInstallerActivity'
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell dumpsys window windows'
[debug] [ADB] Found package: 'com.my.myupdateinstaller' and fully qualified activity name : 'com.my.myupdateinstaller.MyUpdateInstallerActivity'
[debug] [W3C (d8b5b128)] Responding to client with driver.startActivity() result: null
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/appium/device/start_activity 200 1240 ms - 14
[HTTP] 
[HTTP] --> GET /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/appium/device/current_activity
[HTTP] {}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.getCurrentActivity() with args: ["d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell dumpsys window windows'
[debug] [W3C (d8b5b128)] Responding to client with driver.getCurrentActivity() result: ".MyUpdateInstallerActivity"
[HTTP] <-- GET /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/appium/device/current_activity 200 67 ms - 38
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"-android uiautomator","value":"new UiSelector().text(\"uninstall\")","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiSelector().text(\"uninstall\")","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiSelector().text(\"uninstall\")","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiSelector().text(\"uninstall\")","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'new UiSelector().text("uninstall")' using 'ANDROID_UIAUTOMATOR' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Parsing selector: new UiSelector().text("uninstall")
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: class java.lang.String arg: "uninstall"
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[TEXT=uninstall]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"1"}}
[debug] [W3C (d8b5b128)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1"}
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 200 208 ms - 53
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element/1/click
[HTTP] {"id":"1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.click() with args: ["1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"1"}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"1"}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
[debug] [W3C (d8b5b128)] Responding to client with driver.click() result: true
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element/1/click 200 729 ms - 14
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 851 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 45 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 34 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 32 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 31 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 82 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 47 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 33 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 32 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 110 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 86 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 80 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 28 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 33 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 25 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":7,"value":"No element found"}
[debug] [W3C (d8b5b128)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
[debug] [W3C (d8b5b128)]     at AndroidDriver.helpers.findElOrEls (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-android-driver@4.7.0@appium-android-driver/lib/commands/find.js:75:11)
[debug] [W3C (d8b5b128)]     at <anonymous>
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 404 79 ms - 469
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"id","value":"android:id/button1","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["id","android:id/button1","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"android:id/button1","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android:id/button1' using 'ID' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[INSTANCE=0, RESOURCE_ID=android:id/button1]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"2"}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [W3C (d8b5b128)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"2"}
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 200 713 ms - 53
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element
[HTTP] {"using":"-android uiautomator","value":"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"确定\").instance(0));","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.findElement() with args: ["-android uiautomator","new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"确定\").instance(0));","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"确定\").instance(0));","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"-android uiautomator","selector":"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text(\"确定\").instance(0));","context":"","multiple":false}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("确定").instance(0));' using 'ANDROID_UIAUTOMATOR' with the contextId: '' multiple: false
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Parsing scrollable: new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("确定").instance(0))
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: boolean arg: true
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: int arg: 0
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiScrollable invoking method: public boolean com.android.uiautomator.core.UiScrollable.scrollIntoView(com.android.uiautomator.core.UiObject) throws com.android.uiautomator.core.UiObjectNotFoundException args: new UiSelector().text("确定").instance(0),
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiScrollable coerce type: class com.android.uiautomator.core.UiObject arg: new UiSelector().text("确定").instance(0)
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: class java.lang.String arg: "确定"
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] UiSelector coerce type: int arg: 0
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Method name: scrollIntoView
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Setting uiObject for scrollIntoView
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Not scrolling because scrollable does not exist: UiSelector[INSTANCE=0, SCROLLABLE=true]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[TEXT=确定, INSTANCE=0]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"3"}}
[debug] [W3C (d8b5b128)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"3"}
[HTTP] <-- POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element 200 502 ms - 53
[HTTP] 
[HTTP] --> POST /wd/hub/session/d8b5b128-3112-471e-94a9-9b282cd527b1/element/3/click
[HTTP] {"id":"3","sessionId":"d8b5b128-3112-471e-94a9-9b282cd527b1"}
[debug] [W3C (d8b5b128)] Calling AppiumDriver.click() with args: ["3","d8b5b128-3112-471e-94a9-9b282cd527b1"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"3"}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"3"}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [AndroidDriver] Shutting down Android driver
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell am force-stop com.android.settings'
[Logcat] Logcat terminated with code 0, signal null
[Appium] Closing session, cause was 'UiAUtomator shut down unexpectedly'
[Appium] Removing session d8b5b128-3112-471e-94a9-9b282cd527b1 from our master session list
[ADB] Error sending command, reconnecting device and retrying: shell,am,force-stop,com.android.settings
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell am force-stop com.android.settings'
[ADB] Error sending command, reconnecting device and retrying: shell,am,force-stop,com.android.settings
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
Unhandled rejection Error: Error executing adbExec. Original error: 'Command '/home/hezj/Software/AndroidStudio/SDK/platform-tools/adb -P 5037 -s SA17806148 shell am force-stop com.android.settings' exited with code 1'; Stderr: 'error: device 'SA17806148' not found'; Code: '1'
    at execFunc (/home/hezj/Software/node/node-v8.12.0-linux-x64/lib/node_modules/appium/node_modules/_appium-adb@6.28.0@appium-adb/lib/tools/system-calls.js:326:13)
    at <anonymous>

how should I do?

mykola-mokhnach commented 5 years ago

error: device 'SA17806148' not found

This means adb connection has been terminated by the device itself. The problem has nothing to do with appium.

mykola-mokhnach commented 5 years ago

Closed as third party issue

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.