784f437de1b5:~ (user_account)$ appium --relaxed-security [Appium] Welcome to Appium v1.9.2-beta.1 [Appium] Non-default server args: [Appium] relaxedSecurityEnabled: true [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 1537895115733 (12:05:15 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] udid: RS988d7aef68e [Appium] automationName: uiautomator2 [Appium] app: /Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [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 [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument [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: 1bdd1795-70d0-4860-8729-c63aa985d3be (node:59703) [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 [ADB] Getting device platform version [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm size' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm density' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': RS988 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.manufacturer' [debug] [ADB] Current device property 'ro.product.manufacturer': LGE [debug] [ADB] Device API level: 24 [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 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward tcp\:8200 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:8200/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:8200/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:8200/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:8200/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:8200/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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":"1bd2c92d-8815-4347-8cea-ff941e085d09","status":0,"value":"Created Session"} [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:8200/wd/hub/session/1bd2c92d-8815-4347-8cea-ff941e085d09/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"1bd2c92d-8815-4347-8cea-ff941e085d09\",\"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:8200/wd/hub/session/1bd2c92d-8815-4347-8cea-ff941e085d09/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"1bd2c92d-8815-4347-8cea-ff941e085d09\",\"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:8200/wd/hub/session/1bd2c92d-8815-4347-8cea-ff941e085d09/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"1bd2c92d-8815-4347-8cea-ff941e085d09\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 1bdd1795-70d0-4860-8729-c63aa985d3be added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1537895130704 (12:05:30 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 1bdd1795-70d0-4860-8729-c63aa985d3be [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 14978 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/1bdd1795-70d0-4860-8729-c63aa985d3be/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"1bdd1795-70d0-4860-8729-c63aa985d3be"] [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/1bdd1795-70d0-4860-8729-c63aa985d3be/timeouts 200 15 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/1bdd1795-70d0-4860-8729-c63aa985d3be/screenshot [HTTP] {} [debug] [W3C] Calling AppiumDriver.getScreenshot() with args: ["1bdd1795-70d0-4860-8729-c63aa985d3be"] [debug] [JSONWP Proxy] Matched '/screenshot' to command name 'getScreenshot' [debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8200/wd/hub/session/1bd2c92d-8815-4347-8cea-ff941e085d09/screenshot] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"1bd2c92d-8815-4347-8cea-ff941e085d09\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U\\/gAAAgAElEQVR4\\nAey9d7gsRRlvfUVFMYEiSJYgSXIOguSMgCQJKqASBAREQDLCQck55yg5SM5B4IAEFUkSDlmSCJJB\\nMNz10d9Tt56e6do9Mz0zPbPX\\/mM\\/NdXVVdWrJ3T96g3\\/5\\/\\/4JwEJSEACEpCABCQgAQlIQAISkIAE\\nJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQg\\nAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJ\\nSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhA\\nAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAIS\\nkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCA\\nBCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQk\\nIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABEYdgU996lOJa04fTZzo\\nIQlIQAKtEvhkqyfYXgISkIAEJCABCUhAAhKQQEZgvvnmm2OOOZ599tn\\/\\/ve\\/jUw+85nPrLDCCp\\/\\/\\n\\/OdffvnlxqPWSEACEqiWwCeq7a73vU0zzTSvvfbau+++2\... [debug] [W3C] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4\nAey9d7gsRRlvfUVFMYEiSJYgSXIOguSMgCQJKqASBAREQDLCQck55yg5SM5B4IAEFUkSDlmSCJJB\nMNz10d9Tt56e6do9Mz0zPbPX/mM/NdXVVdWrJ3T96g3/5//4JwEJSEACEpCABCQgAQlIQAISkIAE\nJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQg\nAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJ\nSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhA\nAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAIS\nkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCA\nBCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQk\nIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABEYdgU996lOJa04fTZzo\nIQlIQAKtEvhkqyfYXgISkIAEJCABCUhAAhKQQEZgvvnmm2OOOZ599tn//ve/jUw+85nPrLDCCp//\n/OdffvnlxqPWSEACEqiWwCeq7a73vU0zzTSvvfbau+++2/uhHbEvBD772c/OP//8bQx99913f/TR\nR22c6CkSkIAEJCABCUhAAk0JoG7MOuusHPrHP/5x00035Z61UDeWW265iSaaiAYPP/zwn//856ad\nWCkBCU... [HTTP] <-- GET /wd/hub/session/1bdd1795-70d0-4860-8729-c63aa985d3be/screenshot 200 244 ms - 187520 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 1537895130990 (12:05:30 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] udid: RS988d7aef68e [Appium] automationName: uiautomator2 [Appium] app: /Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [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 [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument [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: 08227c10-1c10-4e6d-bf66-ff5b9b1bd502 [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 [ADB] Getting device platform version [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm size' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm density' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': RS988 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.manufacturer' [debug] [ADB] Current device property 'ro.product.manufacturer': LGE [debug] [ADB] Device API level: 24 [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 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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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":"ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48","status":0,"value":"Created Session"} [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/ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48\",\"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/ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48\",\"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/ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 08227c10-1c10-4e6d-bf66-ff5b9b1bd502 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1537895145160 (12:05:45 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 08227c10-1c10-4e6d-bf66-ff5b9b1bd502 [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 14172 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"08227c10-1c10-4e6d-bf66-ff5b9b1bd502"] [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/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/timeouts 200 3 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/element [HTTP] {"using":"accessibility id","value":"Content"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Content","08227c10-1c10-4e6d-bf66-ff5b9b1bd502"] [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:8201/wd/hub/session/ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48/element] with body: {"strategy":"accessibility id","selector":"Content","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48","status":0,"value":{"ELEMENT":"e233a719-3289-4cd2-900a-fc3746674794"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"e233a719-3289-4cd2-900a-fc3746674794"} [HTTP] <-- POST /wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/element 200 645 ms - 88 [HTTP] [HTTP] --> GET /wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/element/e233a719-3289-4cd2-900a-fc3746674794/text [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/element/e233a719-3289-4cd2-900a-fc3746674794/text' to command name 'getText' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/element/e233a719-3289-4cd2-900a-fc3746674794/text] to [GET http://localhost:8201/wd/hub/session/ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48/element/e233a719-3289-4cd2-900a-fc3746674794/text] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48\",\"status\":0,\"value\":\"Content\"}" [JSONWP Proxy] Replacing sessionId ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48 with 08227c10-1c10-4e6d-bf66-ff5b9b1bd502 [HTTP] <-- GET /wd/hub/session/08227c10-1c10-4e6d-bf66-ff5b9b1bd502/element/e233a719-3289-4cd2-900a-fc3746674794/text 200 41 ms - 81 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 1537895145863 (12:05:45 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] udid: RS988d7aef68e [Appium] automationName: uiautomator2 [Appium] app: /Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [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 [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument [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: 7a33ee2f-a5e2-4a9e-994b-cbd93d34f178 [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 [ADB] Getting device platform version [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm size' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm density' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': RS988 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.manufacturer' [debug] [ADB] Current device property 'ro.product.manufacturer': LGE [debug] [ADB] Device API level: 24 [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 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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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":"acd6e842-55cd-47c7-97f0-a5de2d847518","status":0,"value":"Created Session"} [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/acd6e842-55cd-47c7-97f0-a5de2d847518/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"acd6e842-55cd-47c7-97f0-a5de2d847518\",\"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/acd6e842-55cd-47c7-97f0-a5de2d847518/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"acd6e842-55cd-47c7-97f0-a5de2d847518\",\"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/acd6e842-55cd-47c7-97f0-a5de2d847518/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"acd6e842-55cd-47c7-97f0-a5de2d847518\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 7a33ee2f-a5e2-4a9e-994b-cbd93d34f178 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1537895160113 (12:06:00 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 7a33ee2f-a5e2-4a9e-994b-cbd93d34f178 [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 14252 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"7a33ee2f-a5e2-4a9e-994b-cbd93d34f178"] [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/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/timeouts 200 2 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/element [HTTP] {"using":"accessibility id","value":"Content"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Content","7a33ee2f-a5e2-4a9e-994b-cbd93d34f178"] [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/acd6e842-55cd-47c7-97f0-a5de2d847518/element] with body: {"strategy":"accessibility id","selector":"Content","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"acd6e842-55cd-47c7-97f0-a5de2d847518","status":0,"value":{"ELEMENT":"7e114088-d612-4611-94e1-a66c0dae95ad"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"7e114088-d612-4611-94e1-a66c0dae95ad"} [HTTP] <-- POST /wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/element 200 1240 ms - 88 [HTTP] [HTTP] --> GET /wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/element/7e114088-d612-4611-94e1-a66c0dae95ad/text [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/element/7e114088-d612-4611-94e1-a66c0dae95ad/text' to command name 'getText' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/element/7e114088-d612-4611-94e1-a66c0dae95ad/text] to [GET http://localhost:8202/wd/hub/session/acd6e842-55cd-47c7-97f0-a5de2d847518/element/7e114088-d612-4611-94e1-a66c0dae95ad/text] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"acd6e842-55cd-47c7-97f0-a5de2d847518\",\"status\":0,\"value\":\"Content\"}" [JSONWP Proxy] Replacing sessionId acd6e842-55cd-47c7-97f0-a5de2d847518 with 7a33ee2f-a5e2-4a9e-994b-cbd93d34f178 [HTTP] <-- GET /wd/hub/session/7a33ee2f-a5e2-4a9e-994b-cbd93d34f178/element/7e114088-d612-4611-94e1-a66c0dae95ad/text 200 35 ms - 81 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 1537895161403 (12:06:01 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] udid: RS988d7aef68e [Appium] automationName: uiautomator2 [Appium] app: /Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [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 [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument [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: 2d7226b4-5ad0-41ce-a194-c68e5ad1ff2f [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 [ADB] Getting device platform version [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm size' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm density' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': RS988 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.manufacturer' [debug] [ADB] Current device property 'ro.product.manufacturer': LGE [debug] [ADB] Device API level: 24 [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 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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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":"5aedf33a-af04-43bc-8bf5-3878bd3d198b","status":0,"value":"Created Session"} [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/5aedf33a-af04-43bc-8bf5-3878bd3d198b/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5aedf33a-af04-43bc-8bf5-3878bd3d198b\",\"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/5aedf33a-af04-43bc-8bf5-3878bd3d198b/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5aedf33a-af04-43bc-8bf5-3878bd3d198b\",\"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/5aedf33a-af04-43bc-8bf5-3878bd3d198b/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5aedf33a-af04-43bc-8bf5-3878bd3d198b\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 2d7226b4-5ad0-41ce-a194-c68e5ad1ff2f added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1537895175434 (12:06:15 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 2d7226b4-5ad0-41ce-a194-c68e5ad1ff2f [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 14032 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/2d7226b4-5ad0-41ce-a194-c68e5ad1ff2f/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"2d7226b4-5ad0-41ce-a194-c68e5ad1ff2f"] [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/2d7226b4-5ad0-41ce-a194-c68e5ad1ff2f/timeouts 200 3 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 2 ms - 74 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 1537895175450 (12:06:15 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] udid: RS988d7aef68e [Appium] automationName: uiautomator2 [Appium] app: /Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [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 [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument [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: 7e768e40-12e4-4b17-8cce-be3635041634 [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 [ADB] Getting device platform version [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm size' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm density' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': RS988 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.manufacturer' [debug] [ADB] Current device property 'ro.product.manufacturer': LGE [debug] [ADB] Device API level: 24 [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 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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":"Created Session"} [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/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"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/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"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/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session 7e768e40-12e4-4b17-8cce-be3635041634 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1537895189615 (12:06:29 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session 7e768e40-12e4-4b17-8cce-be3635041634 [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 14167 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"7e768e40-12e4-4b17-8cce-be3635041634"] [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/7e768e40-12e4-4b17-8cce-be3635041634/timeouts 200 2 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element [HTTP] {"using":"accessibility id","value":"App"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","App","7e768e40-12e4-4b17-8cce-be3635041634"] [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:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element] with body: {"strategy":"accessibility id","selector":"App","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":{"ELEMENT":"84c56d2b-0b32-4fe4-8ea8-f6f34244cf37"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"84c56d2b-0b32-4fe4-8ea8-f6f34244cf37"} [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element 200 623 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/84c56d2b-0b32-4fe4-8ea8-f6f34244cf37/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["84c56d2b-0b32-4fe4-8ea8-f6f34244cf37","7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [JSONWP Proxy] Matched '/element/84c56d2b-0b32-4fe4-8ea8-f6f34244cf37/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/84c56d2b-0b32-4fe4-8ea8-f6f34244cf37/click] to [POST http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element/84c56d2b-0b32-4fe4-8ea8-f6f34244cf37/click] with body: {"element":"84c56d2b-0b32-4fe4-8ea8-f6f34244cf37"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/84c56d2b-0b32-4fe4-8ea8-f6f34244cf37/click 200 1016 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element [HTTP] {"using":"accessibility id","value":"Activity"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Activity","7e768e40-12e4-4b17-8cce-be3635041634"] [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:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element] with body: {"strategy":"accessibility id","selector":"Activity","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":{"ELEMENT":"6865e649-3014-4778-b3aa-d38bd3d3bc20"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"6865e649-3014-4778-b3aa-d38bd3d3bc20"} [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element 200 54 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/6865e649-3014-4778-b3aa-d38bd3d3bc20/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["6865e649-3014-4778-b3aa-d38bd3d3bc20","7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [JSONWP Proxy] Matched '/element/6865e649-3014-4778-b3aa-d38bd3d3bc20/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/6865e649-3014-4778-b3aa-d38bd3d3bc20/click] to [POST http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element/6865e649-3014-4778-b3aa-d38bd3d3bc20/click] with body: {"element":"6865e649-3014-4778-b3aa-d38bd3d3bc20"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/6865e649-3014-4778-b3aa-d38bd3d3bc20/click 200 1046 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element [HTTP] {"using":"accessibility id","value":"Custom Title"} [debug] [W3C] Calling AppiumDriver.findElement() with args: ["accessibility id","Custom Title","7e768e40-12e4-4b17-8cce-be3635041634"] [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:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element] with body: {"strategy":"accessibility id","selector":"Custom Title","context":"","multiple":false} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":{"ELEMENT":"b89d2c62-5cce-47ba-904b-d3730b7e4a67"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"b89d2c62-5cce-47ba-904b-d3730b7e4a67"} [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element 200 69 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b89d2c62-5cce-47ba-904b-d3730b7e4a67/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["b89d2c62-5cce-47ba-904b-d3730b7e4a67","7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [JSONWP Proxy] Matched '/element/b89d2c62-5cce-47ba-904b-d3730b7e4a67/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/b89d2c62-5cce-47ba-904b-d3730b7e4a67/click] to [POST http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element/b89d2c62-5cce-47ba-904b-d3730b7e4a67/click] with body: {"element":"b89d2c62-5cce-47ba-904b-d3730b7e4a67"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b89d2c62-5cce-47ba-904b-d3730b7e4a67/click 200 924 ms - 14 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/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","7e768e40-12e4-4b17-8cce-be3635041634"] [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:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/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":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":{"ELEMENT":"b53bf087-82e0-4496-bd28-b7cd5bb01969"}} [debug] [W3C] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"b53bf087-82e0-4496-bd28-b7cd5bb01969"} [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element 200 58 ms - 88 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/click [HTTP] {} [debug] [W3C] Calling AppiumDriver.click() with args: ["b53bf087-82e0-4496-bd28-b7cd5bb01969","7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [JSONWP Proxy] Matched '/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/click' to command name 'click' [debug] [JSONWP Proxy] Proxying [POST /element/b53bf087-82e0-4496-bd28-b7cd5bb01969/click] to [POST http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/click] with body: {"element":"b53bf087-82e0-4496-bd28-b7cd5bb01969"} [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166","status":0,"value":true} [debug] [W3C] Responding to client with driver.click() result: true [HTTP] <-- POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/click 200 81 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/text [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/text' to command name 'getText' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/text] to [GET http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/text] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"status\":0,\"value\":\"Left is best\"}" [JSONWP Proxy] Replacing sessionId 9d87d6fc-9c1c-4813-ba4b-ae2ff8277166 with 7e768e40-12e4-4b17-8cce-be3635041634 [HTTP] <-- GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/text 200 698 ms - 86 [HTTP] [HTTP] --> GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/attribute/focused [HTTP] {} [debug] [W3C] Calling AppiumDriver.getAttribute() with args: ["focused","b53bf087-82e0-4496-bd28-b7cd5bb01969","7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [JSONWP Proxy] Matched '/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/attribute/focused' to command name 'getAttribute' [debug] [JSONWP Proxy] Proxying [GET /element/b53bf087-82e0-4496-bd28-b7cd5bb01969/attribute/focused] to [GET http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/attribute/focused] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"status\":0,\"value\":\"true\"}" [debug] [W3C] Responding to client with driver.getAttribute() result: "true" [HTTP] <-- GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/element/b53bf087-82e0-4496-bd28-b7cd5bb01969/attribute/focused 200 37 ms - 16 [HTTP] [HTTP] --> POST /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/execute/sync [HTTP] {"script":"mobile: performEditorAction","args":[{"action":"normal"}]} [debug] [W3C] Calling AppiumDriver.execute() with args: ["mobile: performEditorAction",[{"action":"normal"}],"7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [W3C] Encountered internal error running command: UnknownCommandError: Unknown mobile command "performEditorAction". Only shell,scrollBackTo,viewportScreenshot,deepLink,startLogsBroadcast,stopLogsBroadcast,acceptAlert,dismissAlert,batteryInfo,deviceInfo commands are supported. [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0$ (/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/commands/general.js:85:11) [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/7e768e40-12e4-4b17-8cce-be3635041634/execute/sync 404 19 ms - 4811 [HTTP] [HTTP] --> GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/source [HTTP] {} [W3C] Driver proxy active, passing request on via HTTP proxy [debug] [JSONWP Proxy] Matched '/wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/source' to command name 'getPageSource' [debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/source] to [GET http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/source] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"status\":0,\"value\":\" GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/screenshot [HTTP] {} [debug] [W3C] Calling AppiumDriver.getScreenshot() with args: ["7e768e40-12e4-4b17-8cce-be3635041634"] [debug] [JSONWP Proxy] Matched '/screenshot' to command name 'getScreenshot' [debug] [JSONWP Proxy] Proxying [GET /screenshot] to [GET http://localhost:8204/wd/hub/session/9d87d6fc-9c1c-4813-ba4b-ae2ff8277166/screenshot] with no body [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"9d87d6fc-9c1c-4813-ba4b-ae2ff8277166\",\"status\":0,\"value\":\"iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U\\/gAAAgAElEQVR4\\nAeydCdwkR1n\\/9072zubc3exuEpJAgoiBoIAG8eBGo3IJImK4IpcgSsS\\/QCQJIYdyiiBEBBQE5BAU\\n5BbDLeARSCD35trNHsleyWY3u5v9f7truuaZqu6enpmemZ55f\\/NJ9q1+6qmnnvp1d3XVU089NWuW\\nfkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgI\\nASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASE\\ngBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJC\\nQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEh\\nIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQ\\nEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAI\\nCAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAE\\nhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBAC\\nQkAICAEhIASEgBAQAkJACAgBISAEhIAQmHEIzJs3r6TN5bklBZUlBISAEOgVgb... [debug] [W3C] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABaAAAAoACAIAAADIlhKYAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4\nAeydCdwkR1n/9072zubc3exuEpJAgoiBoIAG8eBGo3IJImK4IpcgSsS/QCQJIYdyiiBEBBQE5BAU\n5BbDLeARSCD35trNHsleyWY3u5v9f7truuaZqu6enpmemZ55f/NJ9q1+6qmnnvp1d3XVU089NWuW\nfkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgI\nASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASE\ngBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJC\nQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEh\nIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQ\nEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAI\nCAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAE\nhIAQEAJCQAgIASEgBISAEBACQkAICAEhIASEgBAQAkJACAgBISAEhIAQEAJCQAgIASEgBISAEBAC\nQkAICAEhIASEgBAQAkJACAgBISAEhIAQmHEIzJs3r6TN5bklBZUlBISAEOgVgbm9FhC/EBACQkAI\nCAEhIASEgBAQAkLAIXD66af/9E//9E033XTffffFmBxyyCGPf/zjFy9efPvtt8e5oggBISAE6kVg\ndr3iRi... [HTTP] <-- GET /wd/hub/session/7e768e40-12e4-4b17-8cce-be3635041634/screenshot 200 307 ms - 249946 [HTTP] [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"platformName":"android","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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:udid":"RS988d7aef68e","appium:automationName":"uiautomator2","appium:app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 1537895194726 (12:06:34 GMT-0500 (Central Daylight Time)) [Appium] Creating new AndroidUiautomator2Driver (v1.19.0) session [Appium] Capabilities: [Appium] platformName: android [Appium] udid: RS988d7aef68e [Appium] automationName: uiautomator2 [Appium] app: /Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk [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 [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument [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: a55f0d1b-d400-4ee7-bba8-4c94b41e118a [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 [ADB] Getting device platform version [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 7.0 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm size' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell wm density' [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': RS988 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e shell getprop ro.product.manufacturer' [debug] [ADB] Current device property 'ro.product.manufacturer': LGE [debug] [ADB] Device API level: 24 [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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":"4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2","status":0,"value":"Created Session"} [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/4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2/appium/device/pixel_ratio] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2\",\"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/4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2/appium/device/system_bars] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2\",\"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/4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2/window/current/size] with body: {} [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"4cc055e8-e0f0-45aa-b0f9-ca18e9248ef2\",\"status\":0,\"value\":{\"height\":2392,\"width\":1440}}" [Appium] New AndroidUiautomator2Driver session created successfully, session a55f0d1b-d400-4ee7-bba8-4c94b41e118a added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1537895208974 (12:06:48 GMT-0500 (Central Daylight Time)) [debug] [W3C] Cached the protocol value 'W3C' for the new session a55f0d1b-d400-4ee7-bba8-4c94b41e118a [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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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","udid":"RS988d7aef68e","automationName":"uiautomator2","app":"/Users/(user_account)/gitrepo/ruby_lib_core/test/functional/app/api.apk","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 14250 ms - 1378 [HTTP] [HTTP] --> POST /wd/hub/session/a55f0d1b-d400-4ee7-bba8-4c94b41e118a/timeouts [HTTP] {"implicit":30000} [debug] [W3C] Calling AppiumDriver.timeouts() with args: [null,null,null,null,30000,"a55f0d1b-d400-4ee7-bba8-4c94b41e118a"] [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/a55f0d1b-d400-4ee7-bba8-4c94b41e118a/timeouts 200 2 ms - 14 [HTTP] [BaseDriver] Shutting down because we waited 300 seconds for a command [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession' [debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/1bd2c92d-8815-4347-8cea-ff941e085d09] with no body [Appium] Closing session, cause was 'New Command Timeout of 300 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability' [Appium] Removing session 1bdd1795-70d0-4860-8729-c63aa985d3be from our master session list [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"1bd2c92d-8815-4347-8cea-ff941e085d09\",\"status\":0,\"value\":\"Session deleted\"}" [debug] [UiAutomator2] Resetting 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 set io.appium.android.ime/.UnicodeIME' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward --remove tcp\:8200' [debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:. [debug] [UiAutomator2] [UIAutomator2] Time: 226.177 [debug] [UiAutomator2] [UIAutomator2] OK (1 test) [BaseDriver] Shutting down because we waited 300 seconds for a command [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession' [debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8201/wd/hub/session/ca5ac6c8-1a1f-4f60-8bd5-cd2553e45e48] with no body [Appium] Closing session, cause was 'New Command Timeout of 300 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability' [Appium] Removing session 08227c10-1c10-4e6d-bf66-ff5b9b1bd502 from our master session list [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET [debug] [UiAutomator2] Resetting 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 set io.appium.android.ime/.UnicodeIME' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8201 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward --remove tcp\:8201' [BaseDriver] Shutting down because we waited 300 seconds for a command [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [JSONWP Proxy] Matched '/' to command name 'deleteSession' [debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8202/wd/hub/session/acd6e842-55cd-47c7-97f0-a5de2d847518] with no body [Appium] Closing session, cause was 'New Command Timeout of 300 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability' [Appium] Removing session 7a33ee2f-a5e2-4a9e-994b-cbd93d34f178 from our master session list [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: read ECONNRESET [debug] [UiAutomator2] Resetting 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 set io.appium.android.ime/.UnicodeIME' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8202 [debug] [ADB] Running '/Users/(user_account)/Library/Android/sdk/platform-tools/adb -P 5037 -s RS988d7aef68e forward --remove tcp\:8202'