Closed dmertins closed 2 years ago
Setup:
Steps to reproduce the problem:
require 'appium_lib'
def android_compose_caps() { platformName: 'Android', deviceName: 'emulator-5556', app: File.join(File.dirname(FILE), '../' + 'compose_playground.apk'), automationName: 'espresso', newCommandTimeout: 0, skipUnlock: true, fullReset: false, forceEspressoRebuild: true, showGradleLog: true, espressoBuildConfig: '{"additionalAndroidTestDependencies": ["androidx.lifecycle:lifecycle-extensions:2.2.0", "androidx.activity:activity:1.3.1", "androidx.fragment:fragment:1.2.0"]}' } end
@driver = Appium::Driver.new({ caps: android_compose_caps, appium_lib: { server_url: "http://localhost:4723" } }, false) @driver.start_driver
non_existent_element = @driver.find_element(xpath: "//*[@text='Non Existent Text']")
- run the test script with `ruby test/jetpack_compose.rb`;
After running he script, Appium gets stuck on this request:
2022-02-21 11:28:40:011 - [HTTP] --> POST /session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/element 2022-02-21 11:28:40:012 - [HTTP] {"using":"xpath","value":"//[@text='Non Existent Text']"} 2022-02-21 11:28:40:015 - [W3C (33f3fb6e)] Driver proxy active, passing request on via HTTP proxy 2022-02-21 11:28:40:016 - [debug] [WD Proxy] Matched '/session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/element' to command name 'findElement' 2022-02-21 11:28:40:016 - [debug] [WD Proxy] Proxying [POST /session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/element] to [POST http://127.0.0.1:8300/session/8b4dfc7a-c32f-4282-89c2-8a268d85dd59/element] with body: {"using":"xpath","value":"//[@text='Non Existent Text']"} 2022-02-21 11:28:40:131 - [WD Proxy] Got response with status 404: {"id":"4e51fd71-c740-41e7-986b-87d71c84779a","sessionId":"8b4dfc7a-c32f-4282-89c2-8a268d85dd59","value":{"error":"no such element","message":"Could not find espresso element with strategy XPATH and selector //[@text='Non Existent Text']","stacktrace":"io.appium.espressoserver.lib.handlers.exceptions.NoSuchElementException: Could not find espresso element with strategy XPATH and selector //[@text='Non Existent Text']\n\tat io.appium.espressoserver.lib.handlers.FindElement.handleEspresso(FindElement.kt:39)\n\tat io.appium.espressoserver.lib.handlers.FindElement.handleEspresso(FindElement.kt:27)\n\tat io.appium.espressoserver.lib.handlers.RequestHandler$DefaultImpls.invokeStrategy(RequestHandler.kt:35)\n\tat io.appium.espressoserver.lib.handlers.FindElement.invokeStrategy(FindElement.kt:27)\n\tat io.appium.espressoserver.lib.handlers.FindElement.invokeStrategy(FindElement.kt:27)\n\tat io.appium.espressoserver.lib.handlers.RequestHandler$DefaultImpls.handleInternal(RequestHandler.kt:29)\n\tat io.appium.espre...
Complete Appium Server Log:
2022-02-21 11:28:08:327 - [Appium] Welcome to Appium v2.0.0-beta.25 (REV 3fea5493a431ac64470d4230d4b51438cf213bd1) 2022-02-21 11:28:08:330 - [Appium] Non-default server args: 2022-02-21 11:28:08:331 - [Appium] { 2022-02-21 11:28:08:331 - [Appium] localTimezone: true, 2022-02-21 11:28:08:331 - [Appium] logTimestamp: true 2022-02-21 11:28:08:331 - [Appium] } 2022-02-21 11:28:08:332 - [Appium] Attempting to load driver espresso... 2022-02-21 11:28:09:253 - [Appium] Attempting to load driver uiautomator2... 2022-02-21 11:28:10:279 - [Appium] Appium REST http interface listener started on 0.0.0.0:4723 2022-02-21 11:28:10:280 - [Appium] Available drivers: 2022-02-21 11:28:10:280 - [Appium] - espresso@2.0.1 (automationName 'Espresso') 2022-02-21 11:28:10:280 - [Appium] - uiautomator2@2.0.3 (automationName 'UiAutomator2') 2022-02-21 11:28:10:281 - [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use. 2022-02-21 11:28:29:911 - [debug] [HTTP] Request idempotency key: 0417621b-f088-4593-8e60-87c12c77cc81 2022-02-21 11:28:29:924 - [HTTP] --> POST /session 2022-02-21 11:28:29:924 - [HTTP] {"desiredCapabilities":{"platformName":"Android","deviceName":"emulator-5556","app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","automationName":"espresso","newCommandTimeout":0,"skipUnlock":true,"fullReset":false,"forceEspressoRebuild":true,"showGradleLog":true,"espressoBuildConfig":"{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fragment:fragment:1.2.0\"]}"},"capabilities":{"firstMatch":[{"platformName":"Android","appium:deviceName":"emulator-5556","appium:app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","appium:automationName":"espresso","appium:newCommandTimeout":0,"appium:skipUnlock":true,"appium:fullReset":false,"appium:forceEspressoRebuild":true,"appium:showGradleLog":true,"appium:espressoBuildConfig":"{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fra... 2022-02-21 11:28:29:925 - [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","deviceName":"emulator-5556","app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","automationName":"espresso","newCommandTimeout":0,"skipUnlock":true,"fullReset":false,"forceEspressoRebuild":true,"showGradleLog":true,"espressoBuildConfig":"{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fragment:fragment:1.2.0\"]}"},null,{"firstMatch":[{"platformName":"Android","appium:deviceName":"emulator-5556","appium:app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","appium:automationName":"espresso","appium:newCommandTimeout":0,"appium:skipUnlock":true,"appium:fullReset":false,"appium:forceEspressoRebuild":true,"appium:showGradleLog":true,"appium:espressoBuildConfig":"{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fragment:fragment:1.2.0\"]}"}]}] 2022-02-21 11:28:29:926 - [debug] [BaseDriver] Event 'newSessionRequested' logged at 1645453709925 (11:28:29 GMT-0300 (Brasilia Standard Time)) 2022-02-21 11:28:29:929 - [Appium] Attempting to find matching driver for automationName 'espresso' and platformName 'Android' 2022-02-21 11:28:29:929 - [Appium] The 'espresso' driver was installed and matched caps. 2022-02-21 11:28:29:929 - [Appium] Will require it at /home/dmertins/.appium/appium-espresso-driver/node_modules/appium-espresso-driver 2022-02-21 11:28:29:930 - [Appium] Appium v2.0.0-beta.25 creating new EspressoDriver (v2.0.1) session 2022-02-21 11:28:29:930 - [Appium] Checking BaseDriver versions for Appium and EspressoDriver 2022-02-21 11:28:29:930 - [Appium] Appium's BaseDriver version is 8.2.4 2022-02-21 11:28:29:930 - [Appium] EspressoDriver's BaseDriver version is 8.2.4 2022-02-21 11:28:29:932 - [BaseDriver] Appium received (M)JSONWP desired capabilities in alongside the W3C capabilities; they will be ignored 2022-02-21 11:28:29:933 - [debug] [BaseDriver] Creating session with W3C capabilities: { 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "alwaysMatch": { 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "platformName": "Android", 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:deviceName": "emulator-5556", 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:app": "/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk", 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:automationName": "espresso", 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:newCommandTimeout": 0, 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:skipUnlock": true, 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:fullReset": false, 2022-02-21 11:28:29:933 - [debug] [BaseDriver] "appium:forceEspressoRebuild": true, 2022-02-21 11:28:29:934 - [debug] [BaseDriver] "appium:showGradleLog": true, 2022-02-21 11:28:29:934 - [debug] [BaseDriver] "appium:espressoBuildConfig": "{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fragment:fragment:1.2.0\"]}" 2022-02-21 11:28:29:934 - [debug] [BaseDriver] }, 2022-02-21 11:28:29:934 - [debug] [BaseDriver] "firstMatch": [ 2022-02-21 11:28:29:934 - [debug] [BaseDriver] {} 2022-02-21 11:28:29:934 - [debug] [BaseDriver] ] 2022-02-21 11:28:29:934 - [debug] [BaseDriver] } 2022-02-21 11:28:29:942 - [BaseDriver] Session created with session id: 33f3fb6e-b0b6-4c91-9377-1c75429a5d2e 2022-02-21 11:28:29:945 - [BaseDriver] Using local app '/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk' 2022-02-21 11:28:29:964 - [debug] [Espresso] Checking whether app is actually present 2022-02-21 11:28:29:966 - [Espresso] EspressoDriver version: 2.0.1 2022-02-21 11:28:29:980 - [ADB] Found 4 'build-tools' folders under '/home/dmertins/Android/Sdk' (newest first): 2022-02-21 11:28:29:980 - [ADB] /home/dmertins/Android/Sdk/build-tools/32.0.0 2022-02-21 11:28:29:980 - [ADB] /home/dmertins/Android/Sdk/build-tools/30.0.3 2022-02-21 11:28:29:980 - [ADB] /home/dmertins/Android/Sdk/build-tools/30.0.2 2022-02-21 11:28:29:980 - [ADB] /home/dmertins/Android/Sdk/build-tools/29.0.2 2022-02-21 11:28:29:981 - [ADB] Using 'adb' from '/home/dmertins/Android/Sdk/platform-tools/adb' 2022-02-21 11:28:29:981 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 start-server' 2022-02-21 11:28:29:990 - [AndroidDriver] Retrieving device list 2022-02-21 11:28:29:990 - [debug] [ADB] Trying to find a connected android device 2022-02-21 11:28:29:990 - [debug] [ADB] Getting connected devices 2022-02-21 11:28:30:000 - [debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}] 2022-02-21 11:28:30:000 - [AndroidDriver] Using device: emulator-5554 2022-02-21 11:28:30:001 - [ADB] Using 'adb' from '/home/dmertins/Android/Sdk/platform-tools/adb' 2022-02-21 11:28:30:001 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 start-server' 2022-02-21 11:28:30:010 - [debug] [ADB] Setting device id to emulator-5554 2022-02-21 11:28:30:011 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' 2022-02-21 11:28:30:042 - [debug] [ADB] Current device property 'ro.build.version.sdk': 30 2022-02-21 11:28:30:042 - [ADB] Getting device platform version 2022-02-21 11:28:30:042 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release' 2022-02-21 11:28:30:066 - [debug] [ADB] Current device property 'ro.build.version.release': 11 2022-02-21 11:28:30:067 - [debug] [ADB] Device API level: 30 2022-02-21 11:28:30:067 - [Espresso] Relaxing hidden api policy 2022-02-21 11:28:30:067 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1'' 2022-02-21 11:28:30:128 - [debug] [AndroidDriver] Parsing package and activity from app manifest 2022-02-21 11:28:30:144 - [ADB] Package name: 'com.example.jetpackcomposeplayground' 2022-02-21 11:28:30:144 - [ADB] Main activity name: 'com.example.jetpackcompose.core.MainActivity' 2022-02-21 11:28:30:144 - [debug] [AndroidDriver] Parsed package and activity are: com.example.jetpackcomposeplayground/com.example.jetpackcompose.core.MainActivity 2022-02-21 11:28:30:144 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device' 2022-02-21 11:28:30:153 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping' 2022-02-21 11:28:30:169 - [debug] [AndroidDriver] Pushing settings apk to device... 2022-02-21 11:28:30:170 - [debug] [ADB] Getting install status for io.appium.settings 2022-02-21 11:28:30:170 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' 2022-02-21 11:28:30:195 - [debug] [ADB] 'io.appium.settings' is installed 2022-02-21 11:28:30:195 - [debug] [ADB] Getting package info for 'io.appium.settings' 2022-02-21 11:28:30:196 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' 2022-02-21 11:28:30:233 - [debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('4.0.0' >= '4.0.0') 2022-02-21 11:28:30:234 - [debug] [ADB] There is no need to install/upgrade '/home/dmertins/.appium/appium-espresso-driver/node_modules/appium-espresso-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk' 2022-02-21 11:28:30:234 - [debug] [ADB] Getting IDs of all 'io.appium.settings' processes 2022-02-21 11:28:30:234 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?'' 2022-02-21 11:28:30:256 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f ([[:blank:]]|\^)io.appium.settings([[:blank:]]|\$)' 2022-02-21 11:28:30:323 - [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. 2022-02-21 11:28:30:325 - [debug] [Logcat] Starting logs capture with command: /home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime 2022-02-21 11:28:30:358 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global animator_duration_scale' 2022-02-21 11:28:30:389 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global transition_animation_scale' 2022-02-21 11:28:30:419 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global window_animation_scale' 2022-02-21 11:28:30:461 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am broadcast -a io.appium.settings.animation -n io.appium.settings/.receivers.AnimationSettingReceiver --es setstatus disable' 2022-02-21 11:28:30:509 - [debug] [Espresso] Forwarding Espresso Server port 6791 to 8300 2022-02-21 11:28:30:510 - [debug] [ADB] Forwarding system: 8300 to device: 6791 2022-02-21 11:28:30:510 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:8300 tcp:6791' 2022-02-21 11:28:30:520 - [debug] [Espresso] 'skipUnlock' capability set, so skipping device unlock 2022-02-21 11:28:30:521 - [debug] [ADB] Checking app cert for /home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk 2022-02-21 11:28:30:546 - [ADB] Using 'apksigner.jar' from '/home/dmertins/Android/Sdk/build-tools/32.0.0/lib/apksigner.jar' 2022-02-21 11:28:30:547 - [debug] [ADB] Starting apksigner: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xmx1024M -Xss1m -jar /home/dmertins/Android/Sdk/build-tools/32.0.0/lib/apksigner.jar verify --print-certs /home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk 2022-02-21 11:28:31:022 - [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 2022-02-21 11:28:31:022 - [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc 2022-02-21 11:28:31:022 - [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 2022-02-21 11:28:31:022 - [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 2022-02-21 11:28:31:022 - [debug] [ADB] 2022-02-21 11:28:31:023 - [debug] [ADB] sha256 hash did match for 'compose_playground.apk' 2022-02-21 11:28:31:023 - [ADB] '/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk' is signed with the default certificate 2022-02-21 11:28:31:023 - [debug] [ADB] Getting install status for com.example.jetpackcomposeplayground 2022-02-21 11:28:31:023 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:049 - [debug] [ADB] 'com.example.jetpackcomposeplayground' is installed 2022-02-21 11:28:31:049 - [debug] [ADB] Getting package info for 'com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:049 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:078 - [debug] [ADB] The version name of the installed 'com.example.jetpackcomposeplayground' is greater or equal to the application version name ('1.0.0' >= '1.0.0') 2022-02-21 11:28:31:079 - [debug] [ADB] There is no need to install/upgrade '/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk' 2022-02-21 11:28:31:079 - [AndroidDriver] Performing fast reset on 'com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:079 - [debug] [ADB] Getting install status for com.example.jetpackcomposeplayground 2022-02-21 11:28:31:079 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:109 - [debug] [ADB] 'com.example.jetpackcomposeplayground' is installed 2022-02-21 11:28:31:109 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:141 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear com.example.jetpackcomposeplayground' 2022-02-21 11:28:31:179 - [debug] [AndroidDriver] Performed fast reset on the installed 'com.example.jetpackcomposeplayground' application (stop and clear) 2022-02-21 11:28:31:179 - [debug] [Espresso] 'forceEspressoRebuild' capability is enabled 2022-02-21 11:28:31:179 - [debug] [Espresso] Deleting the obsolete Espresso server package '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' 2022-02-21 11:28:31:183 - [Espresso] Loading the build configuration from 'espressoBuildConfig' capability 2022-02-21 11:28:31:183 - [Espresso] Building espresso server in '/tmp/espresso-server-emulator-5554' 2022-02-21 11:28:31:183 - [debug] [Espresso] The build folder root could be customized by changing the 'tmpDir' capability 2022-02-21 11:28:31:325 - [debug] [Espresso] Copying espresso server template from ('/home/dmertins/.appium/appium-espresso-driver/node_modules/appium-espresso-driver/espresso-server' to '/tmp/espresso-server-emulator-5554') 2022-02-21 11:28:31:555 - [debug] [Support] Traversed 52 directories and 281 files in 229ms 2022-02-21 11:28:31:555 - [debug] [Espresso] Bulding espresso server 2022-02-21 11:28:31:556 - [Espresso] Adding the following additionalAndroidTestDependencies to build.gradle.kts: androidTestImplementation("androidx.lifecycle:lifecycle-extensions:2.2.0"),androidTestImplementation("androidx.activity:activity:1.3.1"),androidTestImplementation("androidx.fragment:fragment:1.2.0") 2022-02-21 11:28:31:557 - [debug] [Espresso] Beginning build with command './gradlew -PappiumTargetPackage=com.example.jetpackcomposeplayground app:assembleAndroidTest' in directory '/tmp/espresso-server-emulator-5554' 2022-02-21 11:28:31:557 - [debug] [Espresso] Output from Gradle will be logged. To change this, use 'showGradleLog' desired capability 2022-02-21 11:28:32:426 - [Gradle] [STDOUT] > Task :app:preBuild UP-TO-DATE 2022-02-21 11:28:32:427 - [Gradle] [STDOUT] > Task :app:preDebugBuild UP-TO-DATE 2022-02-21 11:28:32:427 - [Gradle] [STDOUT] > Task :app:compileDebugAidl NO-SOURCE 2022-02-21 11:28:32:427 - [Gradle] [STDOUT] > Task :app:compileDebugRenderscript NO-SOURCE 2022-02-21 11:28:32:427 - [Gradle] [STDOUT] > Task :app:generateDebugBuildConfig FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:checkDebugAarMetadata FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:generateDebugResValues FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:generateDebugResources UP-TO-DATE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:mergeDebugResources FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:createDebugCompatibleScreenManifests FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:extractDeepLinksDebug FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:processDebugMainManifest FROM-CACHE 2022-02-21 11:28:32:428 - [Gradle] [STDOUT] > Task :app:processDebugManifest FROM-CACHE 2022-02-21 11:28:32:429 - [Gradle] [STDOUT] > Task :app:processDebugManifestForPackage FROM-CACHE 2022-02-21 11:28:32:523 - [Gradle] [STDOUT] > Task :app:processDebugResources FROM-CACHE 2022-02-21 11:28:32:922 - [Gradle] [STDOUT] > Task :app:compileDebugKotlin FROM-CACHE 2022-02-21 11:28:32:922 - [Gradle] [STDOUT] > Task :app:javaPreCompileDebug FROM-CACHE 2022-02-21 11:28:33:222 - [Gradle] [STDOUT] > Task :app:compileDebugJavaWithJavac FROM-CACHE 2022-02-21 11:28:33:223 - [Gradle] [STDOUT] > Task :app:bundleDebugClasses FROM-CACHE 2022-02-21 11:28:33:223 - [Gradle] [STDOUT] > Task :app:preDebugAndroidTestBuild SKIPPED 2022-02-21 11:28:33:223 - [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestAidl NO-SOURCE 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:processDebugAndroidTestManifest 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestRenderscript NO-SOURCE 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestBuildConfig FROM-CACHE 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestAarMetadata FROM-CACHE 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResValues FROM-CACHE 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResources UP-TO-DATE 2022-02-21 11:28:33:323 - [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestResources FROM-CACHE 2022-02-21 11:28:33:422 - [Gradle] [STDOUT] > Task :app:processDebugAndroidTestResources FROM-CACHE 2022-02-21 11:28:33:522 - [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestKotlin FROM-CACHE 2022-02-21 11:28:33:522 - [Gradle] [STDOUT] > Task :app:javaPreCompileDebugAndroidTest FROM-CACHE 2022-02-21 11:28:33:622 - [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestJavaWithJavac FROM-CACHE 2022-02-21 11:28:33:622 - [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestSources UP-TO-DATE 2022-02-21 11:28:33:622 - [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestShaders FROM-CACHE 2022-02-21 11:28:33:623 - [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestShaders NO-SOURCE 2022-02-21 11:28:33:623 - [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestAssets UP-TO-DATE 2022-02-21 11:28:33:623 - [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestAssets FROM-CACHE 2022-02-21 11:28:33:623 - [Gradle] [STDOUT] > Task :app:compressDebugAndroidTestAssets FROM-CACHE 2022-02-21 11:28:33:623 - [Gradle] [STDOUT] > Task :app:processDebugAndroidTestJavaRes NO-SOURCE 2022-02-21 11:28:33:922 - [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJavaResource FROM-CACHE 2022-02-21 11:28:33:922 - [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJniLibFolders FROM-CACHE 2022-02-21 11:28:34:122 - [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestNativeLibs FROM-CACHE 2022-02-21 11:28:34:222 - [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestDuplicateClasses FROM-CACHE 2022-02-21 11:28:34:222 - [Gradle] [STDOUT] > Task :app:desugarDebugAndroidTestFileDependencies 2022-02-21 11:28:34:422 - [Gradle] [STDOUT] > Task :app:mergeExtDexDebugAndroidTest FROM-CACHE 2022-02-21 11:28:34:422 - [Gradle] [STDOUT] > Task :app:mergeLibDexDebugAndroidTest FROM-CACHE 2022-02-21 11:28:34:422 - [Gradle] [STDOUT] > Task :app:dexBuilderDebugAndroidTest FROM-CACHE 2022-02-21 11:28:34:422 - [Gradle] [STDOUT] > Task :app:mergeProjectDexDebugAndroidTest FROM-CACHE 2022-02-21 11:28:34:423 - [Gradle] [STDOUT] > Task :app:validateSigningDebugAndroidTest FROM-CACHE 2022-02-21 11:28:34:822 - [Gradle] [STDOUT] > Task :app:packageDebugAndroidTest 2022-02-21 11:28:34:822 - [Gradle] [STDOUT] > Task :app:assembleDebugAndroidTest 2022-02-21 11:28:34:822 - [Gradle] [STDOUT] > Task :app:assembleAndroidTest 2022-02-21 11:28:34:848 - [Gradle] [STDOUT] 2022-02-21 11:28:34:849 - [Gradle] [STDOUT] BUILD SUCCESSFUL in 3s 2022-02-21 11:28:34:849 - [Gradle] [STDOUT] 37 actionable tasks: 3 executed, 34 from cache 2022-02-21 11:28:34:856 - [debug] [Espresso] Copying built apk from '/tmp/espresso-server-emulator-5554/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk' to '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' 2022-02-21 11:28:34:867 - [debug] [ADB] Checking app cert for /tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk 2022-02-21 11:28:34:883 - [debug] [ADB] Starting apksigner: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xmx1024M -Xss1m -jar /home/dmertins/Android/Sdk/build-tools/32.0.0/lib/apksigner.jar verify --print-certs /tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk 2022-02-21 11:28:35:307 - [debug] [ADB] apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug 2022-02-21 11:28:35:307 - [debug] [ADB] Signer #1 certificate SHA-256 digest: ce17d3780c6fc179d5db00e383bde05a476e7a0c874a03fc02af30a9e3e5637b 2022-02-21 11:28:35:307 - [debug] [ADB] Signer #1 certificate SHA-1 digest: 7cfeda238206e75838cc6f81be7da0989eab0a07 2022-02-21 11:28:35:307 - [debug] [ADB] Signer #1 certificate MD5 digest: 9b9efdfed173c97dcd746baf5a8dc1b9 2022-02-21 11:28:35:307 - [debug] [ADB] 2022-02-21 11:28:35:308 - [ADB] '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' is signed with a non-default certificate 2022-02-21 11:28:35:309 - [ADB] Using 'zipalign' from '/home/dmertins/Android/Sdk/build-tools/32.0.0/zipalign' 2022-02-21 11:28:35:323 - [debug] [ADB] /tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' is already zip-aligned. Doing nothing 2022-02-21 11:28:35:323 - [debug] [ADB] Signing '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' with default cert 2022-02-21 11:28:35:323 - [debug] [ADB] Starting apksigner: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xmx1024M -Xss1m -jar /home/dmertins/Android/Sdk/build-tools/32.0.0/lib/apksigner.jar sign --key /home/dmertins/.appium/appium-espresso-driver/node_modules/appium-espresso-driver/node_modules/appium-android-driver/node_modules/appium-adb/keys/testkey.pk8 --cert /home/dmertins/.appium/appium-espresso-driver/node_modules/appium-espresso-driver/node_modules/appium-android-driver/node_modules/appium-adb/keys/testkey.x509.pem /tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk 2022-02-21 11:28:35:850 - [debug] [ADB] Uninstalling io.appium.espressoserver.test 2022-02-21 11:28:35:850 - [debug] [ADB] Getting install status for io.appium.espressoserver.test 2022-02-21 11:28:35:851 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test' 2022-02-21 11:28:35:877 - [debug] [ADB] 'io.appium.espressoserver.test' is installed 2022-02-21 11:28:35:877 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.espressoserver.test' 2022-02-21 11:28:35:909 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 uninstall io.appium.espressoserver.test' 2022-02-21 11:28:36:179 - [debug] [ADB] 'adb uninstall io.appium.espressoserver.test' command output: Success 2022-02-21 11:28:36:179 - [ADB] io.appium.espressoserver.test was successfully uninstalled 2022-02-21 11:28:36:179 - [Espresso] Uninstalled the obsolete Espresso server package from the device under test 2022-02-21 11:28:36:180 - [debug] [ADB] Getting install status for io.appium.espressoserver.test 2022-02-21 11:28:36:180 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test' 2022-02-21 11:28:36:263 - [debug] [ADB] 'io.appium.espressoserver.test' is not installed 2022-02-21 11:28:36:264 - [debug] [ADB] App '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' is not installed 2022-02-21 11:28:36:264 - [Espresso] Installing Espresso Test Server apk from the target device (path: '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk') 2022-02-21 11:28:36:265 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 help' 2022-02-21 11:28:36:279 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 features' 2022-02-21 11:28:36:294 - [ADB] The application at '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' will not be cached, because the device under test has confirmed the support of streamed installs 2022-02-21 11:28:36:295 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 install /tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' 2022-02-21 11:28:36:450 - [ADB] The installation of 'io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' took 155ms 2022-02-21 11:28:36:450 - [debug] [ADB] Install command stdout: Serving... 2022-02-21 11:28:36:450 - [debug] [ADB] Performing Incremental Install 2022-02-21 11:28:36:450 - [debug] [ADB] Success 2022-02-21 11:28:36:450 - [debug] [ADB] Install command complete in 132 ms 2022-02-21 11:28:36:451 - [Espresso] Installed Espresso Test Server apk '/tmp/io.appium.espressoserver.test_2.0.1_com.example.jetpackcomposeplayground_emulator-5554.apk' (pkg: 'io.appium.espressoserver.test') 2022-02-21 11:28:36:452 - [ADB] Adding packages ["io.appium.settings","io.appium.espressoserver.test"] to Doze whitelist 2022-02-21 11:28:36:453 - [debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.espressoserver.test",";"]] 2022-02-21 11:28:36:453 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.espressoserver.test ;' 2022-02-21 11:28:36:553 - [debug] [Espresso] Performing cleanup of automation leftovers 2022-02-21 11:28:36:565 - [debug] [Espresso] No obsolete sessions have been detected (socket hang up) 2022-02-21 11:28:36:565 - [Espresso] Starting Espresso Server v2.0.1 with cmd: adb shell am instrument -w -e debug false -e disableAnalytics true io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner 2022-02-21 11:28:36:565 - [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","-e","debug",false,"-e","disableAnalytics",true,"io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"] 2022-02-21 11:28:36:578 - [Espresso] Waiting up to 45000ms for Espresso server to be online 2022-02-21 11:28:36:580 - [debug] [WD Proxy] Matched '/status' to command name 'getStatus' 2022-02-21 11:28:36:581 - [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body 2022-02-21 11:28:36:587 - [WD Proxy] socket hang up 2022-02-21 11:28:37:088 - [debug] [WD Proxy] Matched '/status' to command name 'getStatus' 2022-02-21 11:28:37:089 - [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body 2022-02-21 11:28:37:092 - [WD Proxy] socket hang up 2022-02-21 11:28:37:592 - [debug] [WD Proxy] Matched '/status' to command name 'getStatus' 2022-02-21 11:28:37:592 - [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body 2022-02-21 11:28:37:595 - [WD Proxy] socket hang up 2022-02-21 11:28:38:095 - [debug] [WD Proxy] Matched '/status' to command name 'getStatus' 2022-02-21 11:28:38:096 - [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body 2022-02-21 11:28:38:099 - [WD Proxy] socket hang up 2022-02-21 11:28:38:600 - [debug] [WD Proxy] Matched '/status' to command name 'getStatus' 2022-02-21 11:28:38:600 - [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body 2022-02-21 11:28:38:603 - [WD Proxy] socket hang up 2022-02-21 11:28:38:605 - [debug] [Espresso] [Instrumentation] io.appium.espressoserver.EspressoServerRunnerTest: 2022-02-21 11:28:39:104 - [debug] [WD Proxy] Matched '/status' to command name 'getStatus' 2022-02-21 11:28:39:104 - [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body 2022-02-21 11:28:39:144 - [debug] [WD Proxy] Got response with status 200: {"id":"bd4fa195-539a-456b-b081-d701e5553f73","sessionId":null,"value":null} 2022-02-21 11:28:39:144 - [Espresso] Espresso server is online. The initialization process took 2578ms 2022-02-21 11:28:39:144 - [Espresso] Starting the session 2022-02-21 11:28:39:144 - [debug] [WD Proxy] Matched '/session' to command name 'createSession' 2022-02-21 11:28:39:144 - [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8300/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","deviceName":"emulator-5556","app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","automationName":"espresso","newCommandTimeout":0,"skipUnlock":true,"fullReset":false,"forceEspressoRebuild":true,"showGradleLog":true,"espressoBuildConfig":"{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fragment:fragment:1.2.0\"]}"},"platformName":"Android","deviceName":"emulator-5554","app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","automationName":"espresso","newCommandTimeout":0,"skipUnlock":true,"fullReset":false,"forceEspressoRebuild":true,"showGradleLog":true,"espressoBuildConfig":"{\"additionalAndroidTestDe... 2022-02-21 11:28:39:767 - [debug] [WD Proxy] Got response with status 200: {"id":"6443bb04-2ea1-4a4d-97b1-26212f1b2d0c","sessionId":"8b4dfc7a-c32f-4282-89c2-8a268d85dd59","value":{}} 2022-02-21 11:28:39:767 - [WD Proxy] Determined the downstream protocol as 'W3C' 2022-02-21 11:28:39:767 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'echo "com.example.jetpackcomposeplayground" > "/data/local/tmp/espresso.apppackage"'' 2022-02-21 11:28:39:793 - [Espresso] Recorded the target application package 'com.example.jetpackcomposeplayground' to /data/local/tmp/espresso.apppackage 2022-02-21 11:28:39:794 - [debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'com.example.jetpackcomposeplayground' and activity: 'com.example.jetpackcompose.core.MainActivity' to be focused 2022-02-21 11:28:39:794 - [debug] [ADB] Possible activities, to be checked: 'com.example.jetpackcompose.core.MainActivity', 'com.example.jetpackcomposeplayground.com.example.jetpackcompose.core.MainActivity' 2022-02-21 11:28:39:794 - [debug] [ADB] Getting focused package and activity 2022-02-21 11:28:39:795 - [debug] [ADB] Running '/home/dmertins/Android/Sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window displays' 2022-02-21 11:28:39:863 - [debug] [ADB] Found package: 'com.example.jetpackcomposeplayground' and fully qualified activity name : 'com.example.jetpackcompose.core.MainActivity' 2022-02-21 11:28:39:875 - [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8300/session/8b4dfc7a-c32f-4282-89c2-8a268d85dd59/appium/device/info] with no body 2022-02-21 11:28:39:917 - [debug] [WD Proxy] Got response with status 200: {"id":"860691de-a991-45ee-907d-2434af600971","sessionId":"8b4dfc7a-c32f-4282-89c2-8a268d85dd59","value":{"realDisplaySize":"1080x2280","apiVersion":"30","carrierName":"Android","platformVersion":"11","timeZone":"America/Sao_Paulo","model":"sdk_gphone_x86","locale":"en_US","brand":"google","androidId":"9ff712771bcdbfd4","manufacturer":"Google","displayDensity":440}} 2022-02-21 11:28:39:920 - [Appium] New EspressoDriver session created successfully, session 33f3fb6e-b0b6-4c91-9377-1c75429a5d2e added to master session list 2022-02-21 11:28:39:925 - [debug] [BaseDriver] Event 'newSessionStarted' logged at 1645453719925 (11:28:39 GMT-0300 (Brasilia Standard Time)) 2022-02-21 11:28:39:928 - [debug] [W3C (33f3fb6e)] Cached the protocol value 'W3C' for the new session 33f3fb6e-b0b6-4c91-9377-1c75429a5d2e 2022-02-21 11:28:39:931 - [debug] [W3C (33f3fb6e)] Responding to client with driver.createSession() result: {"capabilities":{"platformName":"Android","deviceName":"emulator-5556","app":"/home/dmertins/Programming/Appium-Jetpack-Compose/compose_playground.apk","automationName":"espresso","newCommandTimeout":0,"skipUnlock":true,"fullReset":false,"forceEspressoRebuild":true,"showGradleLog":true,"espressoBuildConfig":"{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\", \"androidx.fragment:fragment:1.2.0\"]}"}} 2022-02-21 11:28:39:947 - [HTTP] <-- POST /session 200 10016 ms - 543 2022-02-21 11:28:39:948 - [HTTP] 2022-02-21 11:28:39:978 - [HTTP] --> POST /session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/timeouts 2022-02-21 11:28:39:979 - [HTTP] {"implicit":0} 2022-02-21 11:28:39:990 - [debug] [W3C (33f3fb6e)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,0,"33f3fb6e-b0b6-4c91-9377-1c75429a5d2e"] 2022-02-21 11:28:39:996 - [debug] [BaseDriver] W3C timeout argument: {"implicit":0}} 2022-02-21 11:28:39:997 - [debug] [BaseDriver] Set implicit wait to 0ms 2022-02-21 11:28:39:999 - [debug] [W3C (33f3fb6e)] Responding to client with driver.timeouts() result: null 2022-02-21 11:28:40:001 - [HTTP] <-- POST /session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/timeouts 200 22 ms - 14 2022-02-21 11:28:40:001 - [HTTP] 2022-02-21 11:28:40:005 - [HTTP] --> GET /status 2022-02-21 11:28:40:006 - [HTTP] {} 2022-02-21 11:28:40:006 - [debug] [GENERIC] Calling AppiumDriver.getStatus() with args: [] 2022-02-21 11:28:40:008 - [debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"2.0.0-beta.25","git-sha":"3fea5493a431ac64470d4230d4b51438cf213bd1","built":"2021-03-29 12:49:10 -0700"}} 2022-02-21 11:28:40:010 - [HTTP] <-- GET /status 200 3 ms - 153 2022-02-21 11:28:40:010 - [HTTP] 2022-02-21 11:28:40:011 - [HTTP] --> POST /session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/element 2022-02-21 11:28:40:012 - [HTTP] {"using":"xpath","value":"//[@text='Non Existent Text']"} 2022-02-21 11:28:40:015 - [W3C (33f3fb6e)] Driver proxy active, passing request on via HTTP proxy 2022-02-21 11:28:40:016 - [debug] [WD Proxy] Matched '/session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/element' to command name 'findElement' 2022-02-21 11:28:40:016 - [debug] [WD Proxy] Proxying [POST /session/33f3fb6e-b0b6-4c91-9377-1c75429a5d2e/element] to [POST http://127.0.0.1:8300/session/8b4dfc7a-c32f-4282-89c2-8a268d85dd59/element] with body: {"using":"xpath","value":"//[@text='Non Existent Text']"} 2022-02-21 11:28:40:131 - [WD Proxy] Got response with status 404: {"id":"4e51fd71-c740-41e7-986b-87d71c84779a","sessionId":"8b4dfc7a-c32f-4282-89c2-8a268d85dd59","value":{"error":"no such element","message":"Could not find espresso element with strategy XPATH and selector //[@text='Non Existent Text']","stacktrace":"io.appium.espressoserver.lib.handlers.exceptions.NoSuchElementException: Could not find espresso element with strategy XPATH and selector //[@text='Non Existent Text']\n\tat io.appium.espressoserver.lib.handlers.FindElement.handleEspresso(FindElement.kt:39)\n\tat io.appium.espressoserver.lib.handlers.FindElement.handleEspresso(FindElement.kt:27)\n\tat io.appium.espressoserver.lib.handlers.RequestHandler$DefaultImpls.invokeStrategy(RequestHandler.kt:35)\n\tat io.appium.espressoserver.lib.handlers.FindElement.invokeStrategy(FindElement.kt:27)\n\tat io.appium.espressoserver.lib.handlers.FindElement.invokeStrategy(FindElement.kt:27)\n\tat io.appium.espressoserver.lib.handlers.RequestHandler$DefaultImpls.handleInternal(RequestHandler.kt:29)\n\tat io.appium.espre...
Android Logcat:
2022-02-21 11:28:23.844 380-380/? W/adbd: timeout expired while flushing socket, closing
2022-02-21 11:28:29.413 6590-6592/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:29.442 6600-6602/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:29.703 6623-6625/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:29.733 6628-6630/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:29.773 6633-6635/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:29.818 5300-5300/io.appium.settings D/AbstractSettingHandler: Disabling animation
2022-02-21 11:28:29.821 6638-6640/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:30.454 525-540/? I/ActivityManager: Force stopping com.example.jetpackcomposeplayground appid=10215 user=0: from pid 6655
2022-02-21 11:28:30.455 6655-6657/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:30.458 857-857/? D/CarrierSvcBindHelper: No carrier app for: 0
2022-02-21 11:28:30.483 525-4401/? I/ActivityManager: Force stopping com.example.jetpackcomposeplayground appid=10215 user=0: clear data
2022-02-21 11:28:30.484 525-562/? I/ActivityManager: Force stopping com.example.jetpackcomposeplayground appid=10215 user=-1: clearApplicationUserData
2022-02-21 11:28:30.488 414-414/? I/keystore: clear_uid 10215
2022-02-21 11:28:30.490 6660-6662/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:30.495 857-857/? D/CarrierSvcBindHelper: No carrier app for: 0
2022-02-21 11:28:30.498 2410-2410/? I/CarrierServices: [2] RcsAutoStartReceiver.a: enableRcs changed from true to true
2022-02-21 11:28:30.518 1311-4256/? I/MediaProvider: Begin Intent { act=android.intent.action.PACKAGE_DATA_CLEARED dat=package:com.example.jetpackcomposeplayground flg=0x1000010 cmp=com.google.android.providers.media.module/com.android.providers.media.MediaService (has extras) }
2022-02-21 11:28:30.522 1090-6666/? I/Fitness: FitCleanupIntentOperation received Intent android.intent.action.PACKAGE_DATA_CLEARED [CONTEXT service_id=17 ]
2022-02-21 11:28:30.526 15481-4718/? I/Icing: doRemovePackageData com.example.jetpackcomposeplayground
2022-02-21 11:28:30.533 1311-4256/? I/MediaProvider: End Intent { act=android.intent.action.PACKAGE_DATA_CLEARED dat=package:com.example.jetpackcomposeplayground flg=0x1000010 cmp=com.google.android.providers.media.module/com.android.providers.media.MediaService (has extras) }
2022-02-21 11:28:30.534 5642-5674/? I/ProvidersCache: Provider returned no roots. Possibly naughty: com.google.android.apps.docs.storage
2022-02-21 11:28:34.844 504-504/? E/netmgr: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:network' service: Invalid argument
2022-02-21 11:28:34.844 504-504/? E/netmgr: Failed to open QEMU pipe 'qemud:network': Invalid argument
2022-02-21 11:28:35.178 506-506/? E/wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the 'pipe:qemud:wififorward' service: Invalid argument
2022-02-21 11:28:35.178 506-506/? E/wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
2022-02-21 11:28:35.223 525-540/? I/ActivityManager: Force stopping io.appium.espressoserver.test appid=10217 user=0: from pid 6683
2022-02-21 11:28:35.224 6683-6685/? I/cmd: oneway function results will be dropped but finished with status OK and parcel size 4
2022-02-21 11:28:35.225 857-857/? D/CarrierSvcBindHelper: No carrier app for: 0
2022-02-21 11:28:35.252 525-562/? I/ActivityManager: Force stopping io.appium.espressoserver.test appid=10217 user=-1: deletePackageX
2022-02-21 11:28:35.317 414-414/? I/keystore: clear_uid 10217
2022-02-21 11:28:35.318 525-579/? E/PermissionMonitor: unknown permission type: -1for uid: 10217
2022-02-21 11:28:35.480 525-579/? I/system_server: Explicit concurrent copying GC freed 312222(15MB) AllocSpace objects, 106(4932KB) LOS objects, 49% free, 16MB/33MB, paused 56us total 161.487ms
2022-02-21 11:28:35.481 525-535/? W/JavaBinder: BinderProxy is being destroyed but the application did not call unlinkToDeath to unlink all of its death recipients beforehand. Releasing leaked death recipient: com.android.server.AlarmManagerService$2
2022-02-21 11:28:35.481 525-535/? I/BpBinder: onLastStrongRef automatically unlinking death recipients:
Hi @dmertins if this is only reproducible in Appium 2.0 beta, and not in the previous version, then it is worth raising the issue in https://github.com/appium/appium-espresso-driver/issues
I'm facing an issue when the element I look for is not present on screen. In that scenario, WD Proxy gets a 404 response and it gets stuck. The test client never receives the HTTP response, and the automation session never ends:
This is happening when automating the compose_playground.apk you provided, and with the same capabilities used in this repo. I'm using Appium Server v2.0.0-beta.25, espresso@2.0.1 and Appium-Python-Client 2.1.2.