Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wangtao169447/0792e4428d726b0c55dff1f078e747fc to your computer and use it in GitHub Desktop.
Save wangtao169447/0792e4428d726b0c55dff1f078e747fc to your computer and use it in GitHub Desktop.
Appium session disconnect
#### python case log
```
======================================================================
ERROR: test_find_elements (__main__.SimpleAndroidTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "androidmi.py", line 27, in tearDown
self.driver.quit()
File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 606, in quit
self.execute(Command.QUIT)
File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 311, in execute
self.error_handler.check_response(response)
File "build/bdist.macosx-10.13-intel/egg/appium/webdriver/errorhandler.py", line 29, in check_response
raise wde
WebDriverException: Message: A session is either terminated or not started
----------------------------------------------------------------------
```
####Appium server error log
```
[HTTP] <-- GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source 200 117 ms - 7837
[Logcat] Logcat terminated with code 0, signal null
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [AndroidDriver] Shutting down Android driver
[Appium] Closing session, cause was 'UiAUtomator shut down unexpectedly'
[Appium] Removing session 1521d3de-1a1e-4e26-b386-8fac61b78e9a from our master session list
[debug] [ADB] Getting connected devices...
[debug] [ADB] 0 device(s) connected
Unhandled rejection Error: No device connected, cannot run adb shell command 'am force-stop io.appium.android.apis'
at ADB.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:341:11)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[HTTP] --> GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source {}
[HTTP] <-- GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source 404 1 ms - 131
[HTTP] --> DELETE /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a {}
[HTTP] <-- DELETE /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a 404 1 ms - 131
```
#### Appium server total log
```
[Appium] Welcome to Appium v1.7.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"capabilities":{"alwaysMatch":{"platformName":"Android"},"firstMatch":[{}]},"desiredCapabilities":{"platformVersion":"7.0","deviceName":"570ee645","app":"/Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk","platformName":"Android"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformVersion":"7.0","deviceName":"570ee645","app":"/Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk","platformName":"Android"},null,{"alwaysMatch":{"platformName":"Android"},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1531981926399 (14:32:06 GMT+0800 (CST))
[Appium] Merged W3C capabilities {"alwaysMatch":{"platformName":"Android"},"firs... into desiredCapabilities object {"platformVersion":"7.0","deviceName":"570ee645...
[Appium] Creating new AndroidDriver (v1.37.0) session
[Appium] Capabilities:
[Appium] platformVersion: 7.0
[Appium] deviceName: 570ee645
[Appium] app: /Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk
[Appium] platformName: Android
[BaseDriver] Session created with session id: 1521d3de-1a1e-4e26-b386-8fac61b78e9a
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 9.0.1
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/cm/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '7.0'
[debug] [ADB] Setting device id to 570ee645
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 7.0
[AndroidDriver] Using device: 570ee645
[ADB] Checking whether adb is present
[debug] [ADB] Setting device id to 570ee645
[BaseDriver] Using local app '/Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk'
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","echo","ping"]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","list","packages","io.appium.settings"]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","dumpsys","package","io.appium.settings"]
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/cm/Library/Android/sdk/build-tools/27.0.1/aapt
[debug] [ADB] The installed 'io.appium.settings' package does not require upgrade (5 >= 5)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Current device property 'ro.build.version.sdk': 24
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","dumpsys","package","io.appium.settings"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","dump","io.appium.settings"]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","ps"]
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","appops","set","io.appium.settings","android:mock_location","allow"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","list","packages","io.appium.unlock"]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.unlock
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","dumpsys","package","io.appium.unlock"]
[ADB] Checking whether aapt is present
[debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade (2 >= 2)
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 7.0
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","wm","size"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","getprop","ro.product.model"]
[debug] [ADB] Current device property 'ro.product.model': MI 5
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","getprop","ro.product.manufacturer"]
[debug] [ADB] Current device property 'ro.product.manufacturer': Xiaomi
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: io.appium.android.apis
[debug] [ADB] badging act: io.appium.android.apis.ApiDemos
[debug] [AndroidDriver] Parsed package and activity are: io.appium.android.apis/io.appium.android.apis.ApiDemos
[AndroidDriver] Remote apk path is /data/local/tmp/29649242b53e9a67ba855b067422713c.apk
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","ls","/data/local/tmp/29649242b53e9a67ba855b067422713c.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for io.appium.android.apis
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","list","packages","io.appium.android.apis"]
[debug] [ADB] App is installed
[AndroidDriver] Apk is already on remote and installed, resetting
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","am","force-stop","io.appium.android.apis"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","pm","clear","io.appium.android.apis"]
[debug] [AndroidDriver] Extracting strings from apk /Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk null /var/folders/_b/h8cxgjtd6h9f4kkz6st6sph80000gn/T/io.appium.android.apis
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","getprop","persist.sys.locale"]
[debug] [ADB] Current device property 'persist.sys.locale': zh-CN
[debug] [ADB] No strings.xml for language 'zh', getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","push","/var/folders/_b/h8cxgjtd6h9f4kkz6st6sph80000gn/T/io.appium.android.apis/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","forward","tcp:4724","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 '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","push","/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","570ee645","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","io.appium.android.apis","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[debug] [UiAutomator] Moving to state 'online'
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json...
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices...
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","am","start","-W","-n","io.appium.android.apis/io.appium.android.apis.ApiDemos","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'io.appium.android.apis' and activity: 'io.appium.android.apis.ApiDemos' to be focused
[debug] [ADB] Possible activities, to be checked: 'io.appium.android.apis.ApiDemos'
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/cm/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","570ee645","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'io.appium.android.apis' and fully qualified activity name : 'io.appium.android.apis.ApiDemos'
[Appium] New AndroidDriver session created successfully, session 1521d3de-1a1e-4e26-b386-8fac61b78e9a added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1531981936772 (14:32:16 GMT+0800 (CST))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformVersion":"7.0","deviceName":"570ee645","app":"/Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk","platformName":"Android"},"platformVersion":"7.0","deviceName":"570ee645","app":"/Users/cm/Documents/github/sample-code-master/sample-code/apps/ApiDemos/bin/ApiDemos-debug.apk","platformName":"Android","deviceUDID":"570ee645","deviceScreenSize":"1080x1920","deviceModel":"MI 5","deviceManufacturer":"Xiaomi","appPackage":"io.appium.android.apis","appWaitPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","appWaitActivity":"io.appium.android.apis.ApiDemos"}
[HTTP] <-- POST /wd/hub/session 200 10378 ms - 917
[HTTP] --> GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source {}
[debug] [MJSONWP] Calling AppiumDriver.getPageSource() with args: ["1521d3de-1a1e-4e26-b386-8fac61b78e9a"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"source","params":{}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"source","params":{}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: source
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":"<?xml version=\"1.0\" encoding=\"UTF-8\"?><hierarchy rotation=\"0\"><android.widget.FrameLayout index=\"0\" text=\"\" class=\"android.widget.FrameLayout\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1080,1920]\" resource-id=\"\" instance=\"0\"><android.view.ViewGroup index=\"0\" text=\"\" class=\"android.view.ViewGroup\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1080,1920]\" resource-id=\"android:id\/decor_content_parent\" instance=\"0\"><android.widget.FrameLayout index=\"0\" text=\"\" class=\"android.widget.FrameLayout\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,60][1080,228]\" resource-id=\"android:id\/action_bar_container\" instance=\"1\"><android.view.ViewGroup index=\"0\" text=\"\" class=\"android.view.ViewGroup\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,60][1080,228]\" resource-id=\"android:id\/action_bar\" instance=\"1\"><android.widget.TextView index=\"0\" text=\"API Demos\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[48,103][346,184]\" resource-id=\"\" instance=\"0\"\/><\/android.view.ViewGroup><\/android.widget.FrameLayout><android.widget.FrameLayout index=\"1\" text=\"\" class=\"android.widget.FrameLayout\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,228][1080,1920]\" resource-id=\"android:id\/content\" instance=\"2\"><android.widget.ListView index=\"0\" text=\"\" class=\"android.widget.ListView\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"true\" focused=\"true\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,228][1080,1920]\" resource-id=\"android:id\/list\" instance=\"0\"><android.widget.TextView index=\"0\" text=\"Accessibility\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Accessibility\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,228][1080,372]\" resource-id=\"android:id\/text1\" instance=\"1\"\/><android.widget.TextView index=\"1\" text=\"Animation\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Animation\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,375][1080,519]\" resource-id=\"android:id\/text1\" instance=\"2\"\/><android.widget.TextView index=\"2\" text=\"App\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"App\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,522][1080,666]\" resource-id=\"android:id\/text1\" instance=\"3\"\/><android.widget.TextView index=\"3\" text=\"Content\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Content\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,669][1080,813]\" resource-id=\"android:id\/text1\" instance=\"4\"\/><android.widget.TextView index=\"4\" text=\"Graphics\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Graphics\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,816][1080,960]\" resource-id=\"android:id\/text1\" instance=\"5\"\/><android.widget.TextView index=\"5\" text=\"Media\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Media\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,963][1080,1107]\" resource-id=\"android:id\/text1\" instance=\"6\"\/><android.widget.TextView index=\"6\" text=\"NFC\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"NFC\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,1110][1080,1254]\" resource-id=\"android:id\/text1\" instance=\"7\"\/><android.widget.TextView index=\"7\" text=\"OS\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"OS\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,1257][1080,1401]\" resource-id=\"android:id\/text1\" instance=\"8\"\/><android.widget.TextView index=\"8\" text=\"Preference\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Preference\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,1404][1080,1548]\" resource-id=\"android:id\/text1\" instance=\"9\"\/><android.widget.TextView index=\"9\" text=\"Text\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Text\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,1551][1080,1695]\" resource-id=\"android:id\/text1\" instance=\"10\"\/><android.widget.TextView index=\"10\" text=\"Views\" class=\"android.widget.TextView\" package=\"io.appium.android.apis\" content-desc=\"Views\" checkable=\"false\" checked=\"false\" clickable=\"true\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,1698][1080,1842]\" resource-id=\"android:id\/text1\" instance=\"11\"\/><\/android.widget.ListView><\/android.widget.FrameLayout><\/android.view.ViewGroup><\/android.widget.FrameLayout><\/hierarchy>"}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.getPageSource() result: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><hierarchy rotation=\"0\"><android.widget.FrameLayout index=\"0\" text=\"\" class=\"android.widget.FrameLayout\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1080,1920]\" resource-id=\"\" instance=\"0\"><android.view.ViewGroup index=\"0\" text=\"\" class=\"android.view.ViewGroup\" package=\"io.appium.android.apis\" content-desc=\"\" checkable=\"false\" checked=\"false\" clickable=\"false\" enabled=\"true\" focusable=\"false\" focused=\"false\" scrollable=\"false\" long-clickable=\"false\" password=\"false\" selected=\"false\" bounds=\"[0,0][1080,1920]\" resource-id=\"android:id/decor_content_parent\" instance=\"0\"><android.widget.FrameLayout index=\"0\" text=\"\" class=\"android.widget.FrameLayout\" package=\"io.appium.android.apis\" content-desc=...
[HTTP] <-- GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source 200 117 ms - 7837
[Logcat] Logcat terminated with code 0, signal null
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state 'stopped'
[debug] [AndroidDriver] Shutting down Android driver
[Appium] Closing session, cause was 'UiAUtomator shut down unexpectedly'
[Appium] Removing session 1521d3de-1a1e-4e26-b386-8fac61b78e9a from our master session list
[debug] [ADB] Getting connected devices...
[debug] [ADB] 0 device(s) connected
Unhandled rejection Error: No device connected, cannot run adb shell command 'am force-stop io.appium.android.apis'
at ADB.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/tools/system-calls.js:341:11)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
[HTTP] --> GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source {}
[HTTP] <-- GET /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a/source 404 1 ms - 131
[HTTP] --> DELETE /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a {}
[HTTP] <-- DELETE /wd/hub/session/1521d3de-1a1e-4e26-b386-8fac61b78e9a 404 1 ms - 131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment