Last login: Thu Sep 27 16:15:43 on ttys001 784f437de1b5:~ (user account)$ appium [Appium] Welcome to Appium v1.9.2-beta.1 [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"capabilities":{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},null,{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538083085701 (16:18:05 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.20.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] automationName: uiautomator2 [Appium] app: /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [Appium] udid: RS988d7aef68e [Appium] platformVersion: 7.0 [Appium] deviceName: LG G5 [Appium] appPackage: io.appium.android.apis [Appium] appActivity: io.appium.android.apis.ApiDemos [Appium] someCapability: some_capability [Appium] unicodeKeyboard: true [Appium] resetKeyboard: true [Appium] disableWindowAnimation: true [Appium] newCommandTimeout: 300 [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"android","... were provided [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] The following capabilities were provided, but are not recognized by appium: someCapability. [BaseDriver] Session created with session id: 2b66e7e2-7f14-40c6-a727-edd4d7b565b8 (node:41596) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [BaseDriver] Using local app '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' [debug] [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_131 [ADB] Checking whether adb is present [ADB] Found 1 'build-tools' folders under '/Users/(user account)/Library/Android/sdk' (newest first): [ADB] /Users/(user account)/Library/Android/sdk/build-tools/25.0.3 [ADB] Using adb from /Users/(user account)/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] Using device: RS988d7aef68e [debug] [ADB] Setting device id to RS988d7aef68e [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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 all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [ADB] Unable to root adb daemon: 'adbd cannot run as root in production builds'. Continuing [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 13573' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 13573' [UiAutomator2] Unable to stop uiautomator process: Error executing adbExec. Original error: 'Command '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 13573' exited with code 1'; Stderr: '/system/bin/sh: kill: 13573: Operation not permitted'; Code: '1' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk [ADB] Using apksigner from /Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' is already signed. [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server' [ADB] Checking whether aapt is present [ADB] Using aapt from /Users/(user account)/Library/Android/sdk/build-tools/25.0.3/aapt [debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.19.0' >= '1.19.0') [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server.test' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server.test' [ADB] Cannot read version codes of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test' [ADB] Cannot read version names of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e wait-for-device' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.settings' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.settings' [debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell appops set io.appium.settings android\:mock_location allow' [AndroidDriver] setDeviceLanguageCountry requires language or country. [AndroidDriver] Got language: 'null' and country: 'null' [debug] [Logcat] Starting logcat capture [debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [AndroidDriver] Pushing unicode ime to device... [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing. [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell settings get secure default_input_method' [debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime enable io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime set io.appium.android.ime/.UnicodeIME' [debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.unlock' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.unlock' [debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8201 [debug] [ADB] Forwarding system: 8201 to device: 6790 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8201 tcp\:6790' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell rm -rf /data/local/tmp/strings.json' [debug] [AndroidDriver] Extracting strings from apk [debug] [AndroidDriver] /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [AndroidDriver] null [debug] [AndroidDriver] /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis [debug] [ADB] Extracting strings for language: default [ADB] Successfully extracted 943 strings from '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' resources for '(default)' configuration [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e push /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis/strings.json /data/local/tmp' [debug] [ADB] Checking app cert for /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' is already signed. [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.android.apis' [ADB] Cannot read version codes of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis' [ADB] Cannot read version names of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis'. Assuming correct app version is already installed [AndroidDriver] Performing fast reset on 'io.appium.android.apis' [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm clear io.appium.android.apis' [debug] [AndroidDriver] Performed fast reset on the installed 'io.appium.android.apis' application (stop and clear) [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [UiAutomator2] Starting uiautomator2 server 1.19.0 [UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Running command: 'adb -s RS988d7aef68e shell am instrument -w --no-window-animation io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' [UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online... [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8201/wd/hub/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8201/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"di... [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"ff3dc3a0-5a78-4adf-b2b4-07576497d709","status":0,"value":"Created Session"} [debug] [JSONWP Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8201/wd/hub/session/ff3dc3a0-5a78-4adf-b2b4-07576497d709/appium/device/info] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ff3dc3a0-5a78-4adf-b2b4-07576497d709\",\"status\":0,\"value\":{\"androidId\":\"90898816c57aa422\",\"manufacturer\":\"LGE\",\"model\":\"RS988\",\"brand\":\"lge\",\"apiVersion\":\"24\",\"platformVersion\":\"7.0\",\"carrierName\":\"\",\"realDisplaySize\":\"1440x2560\",\"displayDensity\":640}}" [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'io.appium.android.apis/io.appium.android.apis.ApiDemos'. Starting it ourselves [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8201/wd/hub/session/ff3dc3a0-5a78-4adf-b2b4-07576497d709/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ff3dc3a0-5a78-4adf-b2b4-07576497d709\",\"status\":0,\"value\":4}" [debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8201/wd/hub/session/ff3dc3a0-5a78-4adf-b2b4-07576497d709/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ff3dc3a0-5a78-4adf-b2b4-07576497d709\",\"status\":0,\"value\":{\"statusBar\":96}}" [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8201/wd/hub/session/ff3dc3a0-5a78-4adf-b2b4-07576497d709/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ff3dc3a0-5a78-4adf-b2b4-07576497d709\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 2b66e7e2-7f14-40c6-a727-edd4d7b565b8 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538083099843 (16:18:19 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 2b66e7e2-7f14-40c6-a727-edd4d7b565b8 [debug] [W3C] 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","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWi... [HTTP] <-- POST /wd/hub/session 200 14150 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/2b66e7e2-7f14-40c6-a727-edd4d7b565b8/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"2b66e7e2-7f14-40c6-a727-edd4d7b565b8"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C] Responding to client with driver.timeouts() result: null [HTTP] <-- POST /wd/hub/session/2b66e7e2-7f14-40c6-a727-edd4d7b565b8/timeouts 200 14 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/status [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getStatus() with args: [] [debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.9.2-beta.1"}} [HTTP] <-- GET /wd/hub/status 200 1 ms - 74 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"capabilities":{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},null,{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538083099880 (16:18:19 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.20.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] automationName: uiautomator2 [Appium] app: /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [Appium] udid: RS988d7aef68e [Appium] platformVersion: 7.0 [Appium] deviceName: LG G5 [Appium] appPackage: io.appium.android.apis [Appium] appActivity: io.appium.android.apis.ApiDemos [Appium] someCapability: some_capability [Appium] unicodeKeyboard: true [Appium] resetKeyboard: true [Appium] disableWindowAnimation: true [Appium] newCommandTimeout: 300 [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"android","... were provided [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] The following capabilities were provided, but are not recognized by appium: someCapability. [BaseDriver] Session created with session id: ff8d513a-4a2d-46b0-a059-8ce59ef320d0 [BaseDriver] Using local app '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' [debug] [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_131 [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] Using device: RS988d7aef68e [debug] [ADB] Setting device id to RS988d7aef68e [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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 all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [ADB] Unable to root adb daemon: 'adbd cannot run as root in production builds'. Continuing [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 14735' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 14735' [UiAutomator2] Unable to stop uiautomator process: Error executing adbExec. Original error: 'Command '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 14735' exited with code 1'; Stderr: '/system/bin/sh: kill: 14735: Operation not permitted'; Code: '1' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk"]' [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0 [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' is already signed. [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.19.0' >= '1.19.0') [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server.test' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server.test' [ADB] Cannot read version codes of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test' [ADB] Cannot read version names of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e wait-for-device' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.settings' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.settings' [debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell appops set io.appium.settings android\:mock_location allow' [AndroidDriver] setDeviceLanguageCountry requires language or country. [AndroidDriver] Got language: 'null' and country: 'null' [debug] [Logcat] Starting logcat capture [debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [AndroidDriver] Pushing unicode ime to device... [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing. [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell settings get secure default_input_method' [debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime enable io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime set io.appium.android.ime/.UnicodeIME' [debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.unlock' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.unlock' [debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8202 [debug] [ADB] Forwarding system: 8202 to device: 6790 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8202 tcp\:6790' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell rm -rf /data/local/tmp/strings.json' [debug] [AndroidDriver] Extracting strings from apk [debug] [AndroidDriver] /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [AndroidDriver] null [debug] [AndroidDriver] /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis [debug] [ADB] Extracting strings for language: default [ADB] Successfully extracted 943 strings from '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' resources for '(default)' configuration [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e push /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis/strings.json /data/local/tmp' [debug] [ADB] Checking app cert for /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' is already signed. [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.android.apis' [ADB] Cannot read version codes of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis' [ADB] Cannot read version names of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis'. Assuming correct app version is already installed [AndroidDriver] Performing fast reset on 'io.appium.android.apis' [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm clear io.appium.android.apis' [debug] [AndroidDriver] Performed fast reset on the installed 'io.appium.android.apis' application (stop and clear) [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [UiAutomator2] Starting uiautomator2 server 1.19.0 [UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Running command: 'adb -s RS988d7aef68e shell am instrument -w --no-window-animation io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' [UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online... [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8202/wd/hub/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8202/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"di... [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"ca6080c3-3032-430c-9fca-952c468cba87","status":0,"value":"Created Session"} [debug] [JSONWP Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8202/wd/hub/session/ca6080c3-3032-430c-9fca-952c468cba87/appium/device/info] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca6080c3-3032-430c-9fca-952c468cba87\",\"status\":0,\"value\":{\"androidId\":\"90898816c57aa422\",\"manufacturer\":\"LGE\",\"model\":\"RS988\",\"brand\":\"lge\",\"apiVersion\":\"24\",\"platformVersion\":\"7.0\",\"carrierName\":\"\",\"realDisplaySize\":\"1440x2560\",\"displayDensity\":640}}" [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'io.appium.android.apis/io.appium.android.apis.ApiDemos'. Starting it ourselves [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8202/wd/hub/session/ca6080c3-3032-430c-9fca-952c468cba87/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca6080c3-3032-430c-9fca-952c468cba87\",\"status\":0,\"value\":4}" [debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8202/wd/hub/session/ca6080c3-3032-430c-9fca-952c468cba87/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca6080c3-3032-430c-9fca-952c468cba87\",\"status\":0,\"value\":{\"statusBar\":96}}" [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8202/wd/hub/session/ca6080c3-3032-430c-9fca-952c468cba87/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca6080c3-3032-430c-9fca-952c468cba87\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session ff8d513a-4a2d-46b0-a059-8ce59ef320d0 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538083113300 (16:18:33 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session ff8d513a-4a2d-46b0-a059-8ce59ef320d0 [debug] [W3C] 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","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWi... [HTTP] <-- POST /wd/hub/session 200 13422 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"ff8d513a-4a2d-46b0-a059-8ce59ef320d0"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C] Responding to client with driver.timeouts() result: null [HTTP] <-- POST /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/timeouts 200 3 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/element [HTTP] {"using":"accessibility id","value":"Content"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Content","ff8d513a-4a2d-46b0-a059-8ce59ef320d0"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [JSONWP Proxy] Matched '/element' to command name 'findElement' [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8202/wd/hub/session/ca6080c3-3032-430c-9fca-952c468cba87/element] with body: {"strategy":"accessibility id","selector":"Content","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"ca6080c3-3032-430c-9fca-952c468cba87","status":0,"value":{"ELEMENT":"acb0138e-a7ab-403b-acd6-7a453a09839e"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"acb0138e-a7ab-403b-acd6-7a453a09839e"} [HTTP] <-- POST /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/element 200 664 ms - 88 [HTTP] [HTTP] --> GET /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/element/acb0138e-a7ab-403b-acd6-7a453a09839e/text [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/element/acb0138e-a7ab-403b-acd6-7a453a09839e/text' to command name 'getText' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/element/acb0138e-a7ab-403b-acd6-7a453a09839e/text] to [GET http://localhost:8202/wd/hub/session/ca6080c3-3032-430c-9fca-952c468cba87/element/acb0138e-a7ab-403b-acd6-7a453a09839e/text] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca6080c3-3032-430c-9fca-952c468cba87\",\"status\":0,\"value\":\"Content\"}" [JSONWP Proxy] Replacing sessionId ca6080c3-3032-430c-9fca-952c468cba87 with ff8d513a-4a2d-46b0-a059-8ce59ef320d0 [HTTP] <-- GET /wd/hub/session/ff8d513a-4a2d-46b0-a059-8ce59ef320d0/element/acb0138e-a7ab-403b-acd6-7a453a09839e/text 200 53 ms - 81 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"capabilities":{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},null,{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538083114035 (16:18:34 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.20.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] automationName: uiautomator2 [Appium] app: /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [Appium] udid: RS988d7aef68e [Appium] platformVersion: 7.0 [Appium] deviceName: LG G5 [Appium] appPackage: io.appium.android.apis [Appium] appActivity: io.appium.android.apis.ApiDemos [Appium] someCapability: some_capability [Appium] unicodeKeyboard: true [Appium] resetKeyboard: true [Appium] disableWindowAnimation: true [Appium] newCommandTimeout: 300 [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"android","... were provided [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] The following capabilities were provided, but are not recognized by appium: someCapability. [BaseDriver] Session created with session id: 0a392a33-2e12-460e-a3ac-62dfb7f29c1c [BaseDriver] Using local app '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' [debug] [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_131 [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] Using device: RS988d7aef68e [debug] [ADB] Setting device id to RS988d7aef68e [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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 all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [ADB] Unable to root adb daemon: 'adbd cannot run as root in production builds'. Continuing [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15094' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15094' [UiAutomator2] Unable to stop uiautomator process: Error executing adbExec. Original error: 'Command '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15094' exited with code 1'; Stderr: '/system/bin/sh: kill: 15094: Operation not permitted'; Code: '1' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk"]' [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0 [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' is already signed. [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.19.0' >= '1.19.0') [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server.test' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server.test' [ADB] Cannot read version codes of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test' [ADB] Cannot read version names of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e wait-for-device' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.settings' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.settings' [debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell appops set io.appium.settings android\:mock_location allow' [AndroidDriver] setDeviceLanguageCountry requires language or country. [AndroidDriver] Got language: 'null' and country: 'null' [debug] [Logcat] Starting logcat capture [debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [AndroidDriver] Pushing unicode ime to device... [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing. [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell settings get secure default_input_method' [debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime enable io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime set io.appium.android.ime/.UnicodeIME' [debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.unlock' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.unlock' [debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8203 [debug] [ADB] Forwarding system: 8203 to device: 6790 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8203 tcp\:6790' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell rm -rf /data/local/tmp/strings.json' [debug] [AndroidDriver] Extracting strings from apk [debug] [AndroidDriver] /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [AndroidDriver] null [debug] [AndroidDriver] /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis [debug] [ADB] Extracting strings for language: default [ADB] Successfully extracted 943 strings from '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' resources for '(default)' configuration [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e push /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis/strings.json /data/local/tmp' [debug] [ADB] Checking app cert for /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' is already signed. [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.android.apis' [ADB] Cannot read version codes of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis' [ADB] Cannot read version names of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis'. Assuming correct app version is already installed [AndroidDriver] Performing fast reset on 'io.appium.android.apis' [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm clear io.appium.android.apis' [debug] [AndroidDriver] Performed fast reset on the installed 'io.appium.android.apis' application (stop and clear) [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [UiAutomator2] Starting uiautomator2 server 1.19.0 [UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Running command: 'adb -s RS988d7aef68e shell am instrument -w --no-window-animation io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' [UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online... [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8203/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8203/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8203/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8203/wd/hub/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8203/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"di... [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":"Created Session"} [debug] [JSONWP Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/appium/device/info] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":{\"androidId\":\"90898816c57aa422\",\"manufacturer\":\"LGE\",\"model\":\"RS988\",\"brand\":\"lge\",\"apiVersion\":\"24\",\"platformVersion\":\"7.0\",\"carrierName\":\"\",\"realDisplaySize\":\"1440x2560\",\"displayDensity\":640}}" [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'io.appium.android.apis/io.appium.android.apis.ApiDemos'. Starting it ourselves [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":4}" [debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":{\"statusBar\":96}}" [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 0a392a33-2e12-460e-a3ac-62dfb7f29c1c added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538083127513 (16:18:47 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 0a392a33-2e12-460e-a3ac-62dfb7f29c1c [debug] [W3C] 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","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWi... [HTTP] <-- POST /wd/hub/session 200 13480 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C] Responding to client with driver.timeouts() result: null [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/timeouts 200 2 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element [HTTP] {"using":"accessibility id","value":"App"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","App","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [JSONWP Proxy] Matched '/element' to command name 'findElement' [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element] with body: {"strategy":"accessibility id","selector":"App","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":{"ELEMENT":"82d01c5a-9450-4d32-8e54-8e930198f2f5"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"82d01c5a-9450-4d32-8e54-8e930198f2f5"} [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element 200 660 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/82d01c5a-9450-4d32-8e54-8e930198f2f5/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["82d01c5a-9450-4d32-8e54-8e930198f2f5","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [JSONWP Proxy] Matched '/element/82d01c5a-9450-4d32-8e54-8e930198f2f5/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/82d01c5a-9450-4d32-8e54-8e930198f2f5/click] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element/82d01c5a-9450-4d32-8e54-8e930198f2f5/click] with body: {"element":"82d01c5a-9450-4d32-8e54-8e930198f2f5"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/82d01c5a-9450-4d32-8e54-8e930198f2f5/click 200 999 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element [HTTP] {"using":"accessibility id","value":"Activity"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Activity","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [JSONWP Proxy] Matched '/element' to command name 'findElement' [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element] with body: {"strategy":"accessibility id","selector":"Activity","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":{"ELEMENT":"ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6"} [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element 200 66 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [JSONWP Proxy] Matched '/element/ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6/click] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element/ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6/click] with body: {"element":"ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/ea0f18a4-ccb0-47c6-a4ff-c9e2bcd656b6/click 200 79 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element [HTTP] {"using":"accessibility id","value":"Custom Title"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Custom Title","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [JSONWP Proxy] Matched '/element' to command name 'findElement' [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element] with body: {"strategy":"accessibility id","selector":"Custom Title","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":{"ELEMENT":"3861d99f-ef5e-459a-9697-a4588ec64b5e"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"3861d99f-ef5e-459a-9697-a4588ec64b5e"} [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element 200 995 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/3861d99f-ef5e-459a-9697-a4588ec64b5e/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["3861d99f-ef5e-459a-9697-a4588ec64b5e","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [JSONWP Proxy] Matched '/element/3861d99f-ef5e-459a-9697-a4588ec64b5e/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/3861d99f-ef5e-459a-9697-a4588ec64b5e/click] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element/3861d99f-ef5e-459a-9697-a4588ec64b5e/click] with body: {"element":"3861d99f-ef5e-459a-9697-a4588ec64b5e"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/3861d99f-ef5e-459a-9697-a4588ec64b5e/click 200 890 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element [HTTP] {"using":"id","value":"io.appium.android.apis:id/left_text_edit"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["id","io.appium.android.apis:id/left_text_edit","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [JSONWP Proxy] Matched '/element' to command name 'findElement' [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element] with body: {"strategy":"id","selector":"io.appium.android.apis:id/left_text_edit","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":{"ELEMENT":"cfda1612-df88-41e1-b601-03cb4c003988"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"cfda1612-df88-41e1-b601-03cb4c003988"} [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element 200 43 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["cfda1612-df88-41e1-b601-03cb4c003988","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [JSONWP Proxy] Matched '/element/cfda1612-df88-41e1-b601-03cb4c003988/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/cfda1612-df88-41e1-b601-03cb4c003988/click] to [POST http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element/cfda1612-df88-41e1-b601-03cb4c003988/click] with body: {"element":"cfda1612-df88-41e1-b601-03cb4c003988"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"94b6cc11-f222-4443-bddf-b9e4578853de","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/click 200 69 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/text [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/text' to command name 'getText' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/text] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element/cfda1612-df88-41e1-b601-03cb4c003988/text] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":\"Left is best\"}" [JSONWP Proxy] Replacing sessionId 94b6cc11-f222-4443-bddf-b9e4578853de with 0a392a33-2e12-460e-a3ac-62dfb7f29c1c [HTTP] <-- GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/text 200 699 ms - 86 [HTTP] [HTTP] --> GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/attribute/focused [HTTP] {} [debug] [W3C] Calling AppiumDriver.getAttribute() with args: ["focused","cfda1612-df88-41e1-b601-03cb4c003988","0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [JSONWP Proxy] Matched '/element/cfda1612-df88-41e1-b601-03cb4c003988/attribute/focused' to command name 'getAttribute' [debug] [JSONWP Proxy] Proxying [GET /element/cfda1612-df88-41e1-b601-03cb4c003988/attribute/focused] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/element/cfda1612-df88-41e1-b601-03cb4c003988/attribute/focused] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":\"true\"}" [debug] [W3C] Responding to client with driver.getAttribute() result: "true" [HTTP] <-- GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/element/cfda1612-df88-41e1-b601-03cb4c003988/attribute/focused 200 41 ms - 16 [HTTP] [HTTP] --> POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/execute/sync [HTTP] {"script":"mobile: performEditorAction","args":[{"action":"normal"}]} [debug] [W3C] Calling AppiumDriver.execute() with args: ["mobile: performEditorAction",[{"action":"normal"}],"0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [W3C] Encountered internal error running command: TypeError: this.adb.performEditorAction is not a function [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:356:18) [debug] [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) [debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) [debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) [debug] [W3C] at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) [debug] [W3C] at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17) [debug] [W3C] at new Promise () [debug] [W3C] at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36) [debug] [W3C] at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) [debug] [W3C] at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) [debug] [W3C] at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0 [as mobilePerformEditorAction] (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/build/lib/commands/general.js:787:30) [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/commands/general.js:90:58) [debug] [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) [debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) [debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) [debug] [W3C] at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) [debug] [W3C] at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17) [debug] [W3C] at new Promise () [debug] [W3C] at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36) [debug] [W3C] at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) [debug] [W3C] at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) [debug] [W3C] at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0 [as executeMobile] (/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/build/lib/commands/general.js:191:30) [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/execute.js:9:23) [debug] [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) [debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) [debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) [debug] [W3C] at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) [debug] [W3C] at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17) [debug] [W3C] at new Promise () [debug] [W3C] at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36) [debug] [W3C] at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) [debug] [W3C] at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) [debug] [W3C] at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0 [as execute] (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/build/lib/commands/execute.js:20:30) [debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:296:26 [debug] [W3C] at tryCatcher (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/util.js:26:23) [debug] [W3C] at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/promise.js:510:31) [debug] [W3C] at Promise._settlePromiseAt (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/promise.js:584:18) [debug] [W3C] at Promise._settlePromiseAtPostResolution (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/promise.js:248:10) [debug] [W3C] at Async._drainQueue (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/async.js:128:12) [debug] [W3C] at Async._drainQueues (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/async.js:133:10) [debug] [W3C] at Immediate.Async.drainQueues (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/node_modules/bluebird/js/main/async.js:15:14) [debug] [W3C] at runCallback (timers.js:694:18) [debug] [W3C] at tryOnImmediate (timers.js:665:5) [debug] [W3C] at processImmediate (timers.js:647:5) [HTTP] <-- POST /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/execute/sync 500 34 ms - 1155 [HTTP] [HTTP] --> GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/source [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/source' to command name 'getPageSource' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/source] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/source] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":\" GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/screenshot [HTTP] {} [debug] [W3C] Calling AppiumDriver.getScreenshot() with args: ["0a392a33-2e12-460e-a3ac-62dfb7f29c1c"] [debug] [JSONWP Proxy] Matched '/screenshot' to command name 'getScreenshot' [debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8203/wd/hub/session/94b6cc11-f222-4443-bddf-b9e4578853de/screenshot] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"94b6cc11-f222-4443-bddf-b9e4578853de\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U\\/gAAAgAElEQVR4\\nAeydB\\/wkRZn+NwK7bGCXuMvuAgIqqNwZTj3D6Z1Zz4jpzjPhmXNC72\\/gFM4DjKiInAE5FcMpegZO\\nUc\\/smTAenOScdhc2wbLALvv\\/dtd0zTtV3T09Mz0zPfN75gP7q65+6623nk5VT7311qxZ+gkBISAE\\nhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBAC\\nQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgB\\nISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISA\\nEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJA\\nCAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEg\\nBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQ\\nAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgI\\nASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASE\\ngBAQAkJACAgBISAEhIAQEAJCQAjUicC8efNK1JWfLSmoU0JACEwlAnOnslVq... [debug] [W3C] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4\nAeydB/wkRZn+NwK7bGCXuMvuAgIqqNwZTj3D6Z1Zz4jpzjPhmXNC72/gFM4DjKiInAE5FcMpegZO\nUc/smTAenOScdhc2wbLALvv/dtd0zTtV3T09Mz0zPfN75gP7q65+6623nk5VT7311qxZ+gkBISAE\nhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBAC\nQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgB\nISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISA\nEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJA\nCAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEg\nBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQ\nAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgI\nASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASE\ngBAQAkJACAgBISAEhIAQEAJCQAjUicC8efNK1JWfLSmoU0JACEwlAnOnslVqlBAQAkJACAgBISAE\nhIAQEAKTjsC9733ve9zjHpdffvkdd9wRt2XXXXd91KMetfvuu1933XXxWeUIASEwAxGYPeltXrNm\nzQ033H... [HTTP] <-- GET /wd/hub/session/0a392a33-2e12-460e-a3ac-62dfb7f29c1c/screenshot 200 309 ms - 251172 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"capabilities":{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},null,{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538083132624 (16:18:52 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.20.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] automationName: uiautomator2 [Appium] app: /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [Appium] udid: RS988d7aef68e [Appium] platformVersion: 7.0 [Appium] deviceName: LG G5 [Appium] appPackage: io.appium.android.apis [Appium] appActivity: io.appium.android.apis.ApiDemos [Appium] someCapability: some_capability [Appium] unicodeKeyboard: true [Appium] resetKeyboard: true [Appium] disableWindowAnimation: true [Appium] newCommandTimeout: 300 [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"android","... were provided [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] The following capabilities were provided, but are not recognized by appium: someCapability. [BaseDriver] Session created with session id: 3bbb37a1-6bcf-4106-b311-9fe8eff4e2be [BaseDriver] Using local app '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' [debug] [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_131 [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] Using device: RS988d7aef68e [debug] [ADB] Setting device id to RS988d7aef68e [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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 all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [ADB] Unable to root adb daemon: 'adbd cannot run as root in production builds'. Continuing [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15434' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15434' [UiAutomator2] Unable to stop uiautomator process: Error executing adbExec. Original error: 'Command '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15434' exited with code 1'; Stderr: '/system/bin/sh: kill: 15434: Operation not permitted'; Code: '1' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0 [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' is already signed. [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.19.0' >= '1.19.0') [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server.test' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server.test' [ADB] Cannot read version codes of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test' [ADB] Cannot read version names of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e wait-for-device' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.settings' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.settings' [debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell appops set io.appium.settings android\:mock_location allow' [AndroidDriver] setDeviceLanguageCountry requires language or country. [AndroidDriver] Got language: 'null' and country: 'null' [debug] [Logcat] Starting logcat capture [debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [AndroidDriver] Pushing unicode ime to device... [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing. [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell settings get secure default_input_method' [debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime enable io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime set io.appium.android.ime/.UnicodeIME' [debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.unlock' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.unlock' [debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8204 [debug] [ADB] Forwarding system: 8204 to device: 6790 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8204 tcp\:6790' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell rm -rf /data/local/tmp/strings.json' [debug] [AndroidDriver] Extracting strings from apk [debug] [AndroidDriver] /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [AndroidDriver] null [debug] [AndroidDriver] /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis [debug] [ADB] Extracting strings for language: default [ADB] Successfully extracted 943 strings from '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' resources for '(default)' configuration [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e push /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis/strings.json /data/local/tmp' [debug] [ADB] Checking app cert for /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' is already signed. [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.android.apis' [ADB] Cannot read version codes of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis' [ADB] Cannot read version names of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis'. Assuming correct app version is already installed [AndroidDriver] Performing fast reset on 'io.appium.android.apis' [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm clear io.appium.android.apis' [debug] [AndroidDriver] Performed fast reset on the installed 'io.appium.android.apis' application (stop and clear) [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [UiAutomator2] Starting uiautomator2 server 1.19.0 [UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Running command: 'adb -s RS988d7aef68e shell am instrument -w --no-window-animation io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' [UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online... [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8204/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8204/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8204/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8204/wd/hub/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8204/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"di... [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"7c750ff4-f95b-4295-95d5-9c0496f0a6b8","status":0,"value":"Created Session"} [debug] [JSONWP Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8204/wd/hub/session/7c750ff4-f95b-4295-95d5-9c0496f0a6b8/appium/device/info] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"7c750ff4-f95b-4295-95d5-9c0496f0a6b8\",\"status\":0,\"value\":{\"androidId\":\"90898816c57aa422\",\"manufacturer\":\"LGE\",\"model\":\"RS988\",\"brand\":\"lge\",\"apiVersion\":\"24\",\"platformVersion\":\"7.0\",\"carrierName\":\"\",\"realDisplaySize\":\"1440x2560\",\"displayDensity\":640}}" [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'io.appium.android.apis/io.appium.android.apis.ApiDemos'. Starting it ourselves [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8204/wd/hub/session/7c750ff4-f95b-4295-95d5-9c0496f0a6b8/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"7c750ff4-f95b-4295-95d5-9c0496f0a6b8\",\"status\":0,\"value\":4}" [debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8204/wd/hub/session/7c750ff4-f95b-4295-95d5-9c0496f0a6b8/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"7c750ff4-f95b-4295-95d5-9c0496f0a6b8\",\"status\":0,\"value\":{\"statusBar\":96}}" [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8204/wd/hub/session/7c750ff4-f95b-4295-95d5-9c0496f0a6b8/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"7c750ff4-f95b-4295-95d5-9c0496f0a6b8\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 3bbb37a1-6bcf-4106-b311-9fe8eff4e2be added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538083146270 (16:19:06 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 3bbb37a1-6bcf-4106-b311-9fe8eff4e2be [debug] [W3C] 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","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWi... [HTTP] <-- POST /wd/hub/session 200 13648 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/3bbb37a1-6bcf-4106-b311-9fe8eff4e2be/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"3bbb37a1-6bcf-4106-b311-9fe8eff4e2be"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C] Responding to client with driver.timeouts() result: null [HTTP] <-- POST /wd/hub/session/3bbb37a1-6bcf-4106-b311-9fe8eff4e2be/timeouts 200 2 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/3bbb37a1-6bcf-4106-b311-9fe8eff4e2be/screenshot [HTTP] {} [debug] [W3C] Calling AppiumDriver.getScreenshot() with args: ["3bbb37a1-6bcf-4106-b311-9fe8eff4e2be"] [debug] [JSONWP Proxy] Matched '/screenshot' to command name 'getScreenshot' [debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8204/wd/hub/session/7c750ff4-f95b-4295-95d5-9c0496f0a6b8/screenshot] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"7c750ff4-f95b-4295-95d5-9c0496f0a6b8\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U\\/gAAAgAElEQVR4\\nAeydd7jtRNm3X1FAFAWlKFWp0jsc6b33QxcQQZqAwAsHpBcBEaRI7yAdpLdDb9J7O\\/SD1EPvVUHl\\nu19zXfNlZ63Myl4rq2Tte\\/+xr2QymczcyUpmfvM8z\\/zP\\/\\/gnAQlIQAISkIAEJCABCUhAAhKQgAQk\\nIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCAB\\nCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlI\\nQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEAC\\nEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQ\\ngAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAE\\nJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQg\\nAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJFAmgW9961uR4sYee+zI\\nUQ9JQAJDjcA3h1qDba8EJCABCUhAAhKQgAQkUAkC880332yzzfbyyy\\/\\/5z\\/\\/qa3wuOOOu9xyy40\\/\\n\\/vhvvPFG7VFTJCCBIUjgG1Vv89RTT\\/3ee+999tlnVW+I... [debug] [W3C] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4\nAeydd7jtRNm3X1FAFAWlKFWp0jsc6b33QxcQQZqAwAsHpBcBEaRI7yAdpLdDb9J7O/SD1EPvVUHl\nu19zXfNlZ63Myl4rq2Tte/+xr2QymczcyUpmfvM8z/zP//gnAQlIQAISkIAEJCABCUhAAhKQgAQk\nIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCAB\nCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlI\nQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEAC\nEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQ\ngAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAE\nJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQg\nAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJFAmgW9961uR4sYee+zI\nUQ9JQAJDjcA3h1qDba8EJCABCUhAAhKQgAQkUAkC880332yzzfbyyy//5z//qa3wuOOOu9xyy40/\n/vhvvPFG7VFTJCCBIUjgG1Vv89RTT/3ee+999tlnVW+I9S9I4Nvf/jafuoaZv/GNb3z99dfpbPfd\nd99XX32VTnFbAhKQgAQkIAEJSKBnCdDlm2mmmajeu+++e/PNN2c6cqgbyy677IQTTkiGp5566uGH\nH+7Zhl... [HTTP] <-- GET /wd/hub/session/3bbb37a1-6bcf-4106-b311-9fe8eff4e2be/screenshot 200 248 ms - 188708 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"capabilities":{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},null,{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538083146543 (16:19:06 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.20.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] automationName: uiautomator2 [Appium] app: /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [Appium] udid: RS988d7aef68e [Appium] platformVersion: 7.0 [Appium] deviceName: LG G5 [Appium] appPackage: io.appium.android.apis [Appium] appActivity: io.appium.android.apis.ApiDemos [Appium] someCapability: some_capability [Appium] unicodeKeyboard: true [Appium] resetKeyboard: true [Appium] disableWindowAnimation: true [Appium] newCommandTimeout: 300 [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"android","... were provided [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] The following capabilities were provided, but are not recognized by appium: someCapability. [BaseDriver] Session created with session id: dd2fdc0a-9358-4fe0-a400-0ad061b907f6 [BaseDriver] Using local app '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' [debug] [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_131 [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] Using device: RS988d7aef68e [debug] [ADB] Setting device id to RS988d7aef68e [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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 all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [ADB] Unable to root adb daemon: 'adbd cannot run as root in production builds'. Continuing [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15792' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15792' [UiAutomator2] Unable to stop uiautomator process: Error executing adbExec. Original error: 'Command '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 15792' exited with code 1'; Stderr: '/system/bin/sh: kill: 15792: Operation not permitted'; Code: '1' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0 [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' is already signed. [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.19.0' >= '1.19.0') [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server.test' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server.test' [ADB] Cannot read version codes of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test' [ADB] Cannot read version names of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e wait-for-device' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.settings' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.settings' [debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell appops set io.appium.settings android\:mock_location allow' [AndroidDriver] setDeviceLanguageCountry requires language or country. [AndroidDriver] Got language: 'null' and country: 'null' [debug] [Logcat] Starting logcat capture [debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [AndroidDriver] Pushing unicode ime to device... [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing. [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell settings get secure default_input_method' [debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime enable io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime set io.appium.android.ime/.UnicodeIME' [debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.unlock' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.unlock' [debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8205 [debug] [ADB] Forwarding system: 8205 to device: 6790 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8205 tcp\:6790' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell rm -rf /data/local/tmp/strings.json' [debug] [AndroidDriver] Extracting strings from apk [debug] [AndroidDriver] /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [AndroidDriver] null [debug] [AndroidDriver] /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis [debug] [ADB] Extracting strings for language: default [ADB] Successfully extracted 943 strings from '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' resources for '(default)' configuration [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e push /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis/strings.json /data/local/tmp' [debug] [ADB] Checking app cert for /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' is already signed. [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.android.apis' [ADB] Cannot read version codes of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis' [ADB] Cannot read version names of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis'. Assuming correct app version is already installed [AndroidDriver] Performing fast reset on 'io.appium.android.apis' [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm clear io.appium.android.apis' [debug] [AndroidDriver] Performed fast reset on the installed 'io.appium.android.apis' application (stop and clear) [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [UiAutomator2] Starting uiautomator2 server 1.19.0 [UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Running command: 'adb -s RS988d7aef68e shell am instrument -w --no-window-animation io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' [UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online... [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8205/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8205/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8205/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8205/wd/hub/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8205/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"di... [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"bb572458-ec7a-4026-8982-281c8907485d","status":0,"value":"Created Session"} [debug] [JSONWP Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8205/wd/hub/session/bb572458-ec7a-4026-8982-281c8907485d/appium/device/info] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"bb572458-ec7a-4026-8982-281c8907485d\",\"status\":0,\"value\":{\"androidId\":\"90898816c57aa422\",\"manufacturer\":\"LGE\",\"model\":\"RS988\",\"brand\":\"lge\",\"apiVersion\":\"24\",\"platformVersion\":\"7.0\",\"carrierName\":\"\",\"realDisplaySize\":\"1440x2560\",\"displayDensity\":640}}" [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'io.appium.android.apis/io.appium.android.apis.ApiDemos'. Starting it ourselves [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8205/wd/hub/session/bb572458-ec7a-4026-8982-281c8907485d/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"bb572458-ec7a-4026-8982-281c8907485d\",\"status\":0,\"value\":4}" [debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8205/wd/hub/session/bb572458-ec7a-4026-8982-281c8907485d/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"bb572458-ec7a-4026-8982-281c8907485d\",\"status\":0,\"value\":{\"statusBar\":96}}" [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8205/wd/hub/session/bb572458-ec7a-4026-8982-281c8907485d/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"bb572458-ec7a-4026-8982-281c8907485d\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session dd2fdc0a-9358-4fe0-a400-0ad061b907f6 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538083159999 (16:19:19 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session dd2fdc0a-9358-4fe0-a400-0ad061b907f6 [debug] [W3C] 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","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWi... [HTTP] <-- POST /wd/hub/session 200 13459 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"dd2fdc0a-9358-4fe0-a400-0ad061b907f6"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C] Responding to client with driver.timeouts() result: null [HTTP] <-- POST /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/timeouts 200 3 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/element [HTTP] {"using":"accessibility id","value":"Content"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Content","dd2fdc0a-9358-4fe0-a400-0ad061b907f6"] [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [BaseDriver] Waiting up to 30000 ms for condition [debug] [JSONWP Proxy] Matched '/element' to command name 'findElement' [debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8205/wd/hub/session/bb572458-ec7a-4026-8982-281c8907485d/element] with body: {"strategy":"accessibility id","selector":"Content","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"bb572458-ec7a-4026-8982-281c8907485d","status":0,"value":{"ELEMENT":"516e1b06-7e3e-4ac0-8cee-43c2c7ee041a"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"516e1b06-7e3e-4ac0-8cee-43c2c7ee041a"} [HTTP] <-- POST /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/element 200 654 ms - 88 [HTTP] [HTTP] --> GET /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/element/516e1b06-7e3e-4ac0-8cee-43c2c7ee041a/text [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/element/516e1b06-7e3e-4ac0-8cee-43c2c7ee041a/text' to command name 'getText' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/element/516e1b06-7e3e-4ac0-8cee-43c2c7ee041a/text] to [GET http://localhost:8205/wd/hub/session/bb572458-ec7a-4026-8982-281c8907485d/element/516e1b06-7e3e-4ac0-8cee-43c2c7ee041a/text] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"bb572458-ec7a-4026-8982-281c8907485d\",\"status\":0,\"value\":\"Content\"}" [JSONWP Proxy] Replacing sessionId bb572458-ec7a-4026-8982-281c8907485d with dd2fdc0a-9358-4fe0-a400-0ad061b907f6 [HTTP] <-- GET /wd/hub/session/dd2fdc0a-9358-4fe0-a400-0ad061b907f6/element/516e1b06-7e3e-4ac0-8cee-43c2c7ee041a/text 200 41 ms - 81 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"capabilities":{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},null,{"firstMatch":[{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","appium:udid":"RS988d7aef68e","appium:platformVersion":"7.0","appium:deviceName":"LG G5","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1538083160713 (16:19:20 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.20.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] automationName: uiautomator2 [Appium] app: /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [Appium] udid: RS988d7aef68e [Appium] platformVersion: 7.0 [Appium] deviceName: LG G5 [Appium] appPackage: io.appium.android.apis [Appium] appActivity: io.appium.android.apis.ApiDemos [Appium] someCapability: some_capability [Appium] unicodeKeyboard: true [Appium] resetKeyboard: true [Appium] disableWindowAnimation: true [Appium] newCommandTimeout: 300 [debug] [BaseDriver] W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"platformName":"android","... were provided [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... [BaseDriver] The following capabilities were provided, but are not recognized by appium: someCapability. [BaseDriver] Session created with session id: 0a7e571a-50a4-4e36-a1af-4f6de3964aad [BaseDriver] Using local app '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' [debug] [UiAutomator2] Checking whether app is actually present [AndroidDriver] Java version is: 1.8.0_131 [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] Using device: RS988d7aef68e [debug] [ADB] Setting device id to RS988d7aef68e [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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 all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [ADB] Unable to root adb daemon: 'adbd cannot run as root in production builds'. Continuing [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 16130' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 16130' [UiAutomator2] Unable to stop uiautomator process: Error executing adbExec. Original error: 'Command '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell kill -9 16130' exited with code 1'; Stderr: '/system/bin/sh: kill: 16130: Operation not permitted'; Code: '1' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk"]' [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0 [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] WARNING: META-INF/INDEX.LIST not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] WARNING: META-INF/io.netty.versions.properties not protected by signature. Unauthorized modifications to this JAR entry will not be detected. Delete or move the entry outside of META-INF/. [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' is already signed. [debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.19.0' >= '1.19.0') [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.uiautomator2.server.test' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server.test' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.uiautomator2.server.test' [ADB] Cannot read version codes of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test' [ADB] Cannot read version names of '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed [debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e wait-for-device' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.settings' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.settings' [debug] [ADB] The installed 'io.appium.settings' package does not require upgrade ('2.3.0' >= '2.3.0') [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell appops set io.appium.settings android\:mock_location allow' [AndroidDriver] setDeviceLanguageCountry requires language or country. [AndroidDriver] Got language: 'null' and country: 'null' [debug] [Logcat] Starting logcat capture [debug] [AndroidDriver] Enabling Unicode keyboard support [debug] [AndroidDriver] Pushing unicode ime to device... [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e install /usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' [debug] [ADB] Application '/usr/local/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing. [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell settings get secure default_input_method' [debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME [debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime enable io.appium.android.ime/.UnicodeIME' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ime set io.appium.android.ime/.UnicodeIME' [debug] [AndroidDriver] Pushing unlock helper app to device... [debug] [ADB] Getting install status for io.appium.unlock [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.unlock' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.unlock' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.unlock' [debug] [ADB] The installed 'io.appium.unlock' package does not require upgrade ('2.0.0' >= '2.0.0') [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8206 [debug] [ADB] Forwarding system: 8206 to device: 6790 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8206 tcp\:6790' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell rm -rf /data/local/tmp/strings.json' [debug] [AndroidDriver] Extracting strings from apk [debug] [AndroidDriver] /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [AndroidDriver] null [debug] [AndroidDriver] /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis [debug] [ADB] Extracting strings for language: default [ADB] Successfully extracted 943 strings from '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' resources for '(default)' configuration [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e push /var/folders/r6/r0tcylpx351_7mnw40mrl7990v039l/T/io.appium.android.apis/strings.json /data/local/tmp' [debug] [ADB] Checking app cert for /Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [debug] [ADB] Starting '/Users/(user account)/Library/Android/sdk/build-tools/25.0.3/apksigner' with args '["verify","--print-certs","/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk"]' [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' is already signed. [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Getting package info for 'io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys package io.appium.android.apis' [ADB] Cannot read version codes of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis' [ADB] Cannot read version names of '/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk' and/or 'io.appium.android.apis'. Assuming correct app version is already installed [AndroidDriver] Performing fast reset on 'io.appium.android.apis' [debug] [ADB] Getting install status for io.appium.android.apis [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm list packages io.appium.android.apis' [debug] [ADB] App is installed [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.android.apis' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell pm clear io.appium.android.apis' [debug] [AndroidDriver] Performed fast reset on the installed 'io.appium.android.apis' application (stop and clear) [debug] [ADB] Getting all processes with uiautomator [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell ps' [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell am force-stop io.appium.uiautomator2.server' [UiAutomator2] Starting uiautomator2 server 1.19.0 [UiAutomator2] Using UIAutomator2 server from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v1.19.0.apk' and test from '/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Running command: 'adb -s RS988d7aef68e shell am instrument -w --no-window-animation io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' [UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online... [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8206/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8206/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8206/wd/hub/status] with no body [debug] [JSONWP Proxy] Matched '/status' to command name 'getStatus' [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8206/wd/hub/status] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}" [debug] [JSONWP Proxy] Matched '/session' to command name 'createSession' [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8206/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"di... [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5ba4d405-a1a4-4023-801f-d54c40d7bd36","status":0,"value":"Created Session"} [debug] [JSONWP Proxy] Proxying [GET /appium/device/info] to [GET http://localhost:8206/wd/hub/session/5ba4d405-a1a4-4023-801f-d54c40d7bd36/appium/device/info] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5ba4d405-a1a4-4023-801f-d54c40d7bd36\",\"status\":0,\"value\":{\"androidId\":\"90898816c57aa422\",\"manufacturer\":\"LGE\",\"model\":\"RS988\",\"brand\":\"lge\",\"apiVersion\":\"24\",\"platformVersion\":\"7.0\",\"carrierName\":\"\",\"realDisplaySize\":\"1440x2560\",\"displayDensity\":640}}" [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'io.appium.android.apis/io.appium.android.apis.ApiDemos'. Starting it ourselves [debug] [ADB] Device API level: 24 [debug] [ADB] Running '/Users/(user account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e 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] [JSONWP Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://localhost:8206/wd/hub/session/5ba4d405-a1a4-4023-801f-d54c40d7bd36/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5ba4d405-a1a4-4023-801f-d54c40d7bd36\",\"status\":0,\"value\":4}" [debug] [JSONWP Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [JSONWP Proxy] Proxying [GET /appium/device/system_bars] to [GET http://localhost:8206/wd/hub/session/5ba4d405-a1a4-4023-801f-d54c40d7bd36/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5ba4d405-a1a4-4023-801f-d54c40d7bd36\",\"status\":0,\"value\":{\"statusBar\":96}}" [debug] [JSONWP Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8206/wd/hub/session/5ba4d405-a1a4-4023-801f-d54c40d7bd36/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5ba4d405-a1a4-4023-801f-d54c40d7bd36\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 0a7e571a-50a4-4e36-a1af-4f6de3964aad added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1538083174259 (16:19:34 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 0a7e571a-50a4-4e36-a1af-4f6de3964aad [debug] [W3C] 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","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"LG G5","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWindowAnimation":true,"newCommandTimeout":300},"platformName":"android","automationName":"uiautomator2","app":"/Users/(user account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","udid":"RS988d7aef68e","platformVersion":"7.0","deviceName":"RS988d7aef68e","appPackage":"io.appium.android.apis","appActivity":"io.appium.android.apis.ApiDemos","someCapability":"some_capability","unicodeKeyboard":true,"resetKeyboard":true,"disableWi... [HTTP] <-- POST /wd/hub/session 200 13547 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/0a7e571a-50a4-4e36-a1af-4f6de3964aad/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"0a7e571a-50a4-4e36-a1af-4f6de3964aad"] [debug] [BaseDriver] W3C timeout argument: {"implicit":30000}} [debug] [BaseDriver] Set implicit wait to 30000ms [debug] [W3C] Responding to client with driver.timeouts() result: null [HTTP] <-- POST /wd/hub/session/0a7e571a-50a4-4e36-a1af-4f6de3964aad/timeouts 200 2 ms - 14 [HTTP]