appium / appium-flutter-driver

Appium Flutter Driver is a test automation tool for Flutter apps on multiple platforms/OSes. Appium Flutter Driver is part of the Appium mobile test automation tool maintained by community
MIT License
452 stars 183 forks source link

@truongsinh @shibupanda Hi this hari, I saw your works , its great and good effort, i have one issue wiith flutter fiinder, if i try find.text("Enter your mobile number").click(); any other find am getting nothing for long time, its simply in showing this message #94

Closed harih71research closed 4 years ago

harih71research commented 4 years ago

@truongsinh @shibupanda Hi this hari, I saw your works , its great and good effort, i have one issue wiith flutter fiinder, if i try find.text("Enter your mobile number").click(); any other find am getting nothing for long time, its simply in showing this message

" POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click [HTTP] {"id":"eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9"} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: ["eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9","ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'click' [debug] [FlutterDriver] >>> {"command":"tap","finderType":"ByText","text":"Enter your mobile number"} [HTTP] <-- POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click - - ms - - [HTTP] [HTTP] --> POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click [HTTP] {"id":"eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9"} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: ["eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9","ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'click'"

am not able to do any action, its like hang or somewhat showing a long time. help me out from this issue. I just need some tutorial for setup environment for Java, what is the thing we have install and how to execute from java ide Below full log:

[FlutterDriver] Connection to ws://127.0.0.1:41489/dBpx0fpk9CM=/ws closed [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":"36000","platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678"},"capabilities":{"firstMatch":[{"appium:app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appium:appActivity":".MainActivity","appium:appPackage":"com.globalmantrainnovations.myfhb","appium:automationName":"Flutter","appium:deviceName":"803KPSL1691678","appium:newCommandTimeout":"36000","appium:noReset":true,"platformName":"android","appium:platformVersion":"10"}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":"36000","platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678"},null,{"firstMatch":[{"appium:app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appium:appActivity":".MainActivity","appium:appPackage":"com.globalmantrainnovations.myfhb","appium:automationName":"Flutter","appium:deviceName":"803KPSL1691678","appium:newCommandTimeout":"36000","appium:noReset":true,"platformName":"android","appium:platformVersion":"10"}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1596432149768 (10:52:29 GMT+0530 (India Standard Time)) [BaseDriver] Number capability passed in as string. Functionality may be compromised. [Appium] Appium v1.16.0 creating new FlutterDriver (v0.0.20) session [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "app": "C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk", [debug] [BaseDriver] "appActivity": ".MainActivity", [debug] [BaseDriver] "appPackage": "com.globalmantrainnovations.myfhb", [debug] [BaseDriver] "noReset": true, [debug] [BaseDriver] "newCommandTimeout": "36000", [debug] [BaseDriver] "platformVersion": "10", [debug] [BaseDriver] "automationName": "Flutter", [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "deviceName": "803KPSL1691678" [debug] [BaseDriver] } [BaseDriver] Capability 'newCommandTimeout' changed from string ('36000') to integer (36000). This may cause unexpected behavior [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [BaseDriver] appActivity [BaseDriver] appPackage [BaseDriver] Session created with session id: ad98101b-5142-4671-80b7-a4f275b64e31 [FlutterDriver] Starting an Android proxy session [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "app": "C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk", [debug] [BaseDriver] "appActivity": ".MainActivity", [debug] [BaseDriver] "appPackage": "com.globalmantrainnovations.myfhb", [debug] [BaseDriver] "noReset": true, [debug] [BaseDriver] "newCommandTimeout": 0, [debug] [BaseDriver] "platformVersion": "10", [debug] [BaseDriver] "automationName": "Flutter", [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "deviceName": "803KPSL1691678" [debug] [BaseDriver] } [BaseDriver] Session created with session id: 37dc808b-d2a3-4a55-ae6a-2b7e144dc2c1 [BaseDriver] Using local app 'C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk' [debug] [UiAutomator2] Checking whether app is actually present [ADB] Using 'adb.exe' from 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe' [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices... [debug] [ADB] Connected devices: [{"udid":"803KPSL1691678","state":"device"}] [AndroidDriver] Looking for a device with Android '10' [debug] [ADB] Setting device id to 803KPSL1691678 [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 10 [AndroidDriver] Using device: 803KPSL1691678 [ADB] Using 'adb.exe' from 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Setting device id to 803KPSL1691678 [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 29 [debug] [ADB] Device API level: 29 [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell settings put global hidden_api_policy_pre_p_apps 1' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell settings put global hidden_api_policy_p_apps 1' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell settings put global hidden_api_policy 1' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 wait-for-device' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.settings' [debug] [ADB] 'io.appium.settings' is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.settings' [debug] [ADB] The version code of the installed 'io.appium.settings' is greater than the application version code (27 > 20) [debug] [ADB] There is no need to downgrade 'io.appium.settings' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell 'pgrep --help; echo $?'' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell pgrep -f io\.appium\.settings' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell appops set io.appium.settings android\:mock_location allow' [debug] [Logcat] Starting logcat capture [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8201 [debug] [ADB] Forwarding system: 8201 to device: 6790 [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 forward tcp\:8201 tcp\:6790' [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.2' >= '4.5.2') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.2.apk [ADB] Using 'apksigner.bat' from 'C:\Users\mhariharan\AppData\Local\Android\Sdk\build-tools\30.0.1\apksigner.bat' [debug] [ADB] Starting 'C:\Users\mhariharan\AppData\Local\Android\Sdk\build-tools\30.0.1\apksigner.bat' with args '["verify","--print-certs","C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.2.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] 'C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.2.apk' is already signed. [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package io.appium.uiautomator2.server.test' [debug] [ADB] 'io.appium.uiautomator2.server.test' is installed [debug] [ADB] Checking app cert for C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting 'C:\Users\mhariharan\AppData\Local\Android\Sdk\build-tools\30.0.1\apksigner.bat' with args '["verify","--print-certs","C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\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] 'C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is already signed. [UiAutomator2] Server packages are not going to be (re)installed [debug] [UiAutomator2] Waiting up to 30000ms for services to be available [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [debug] [ADB] Checking app cert for C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk [debug] [ADB] Starting 'C:\Users\mhariharan\AppData\Local\Android\Sdk\build-tools\30.0.1\apksigner.bat' with args '["verify","--print-certs","C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.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] 'C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk' is already signed. [debug] [ADB] Getting install status for com.globalmantrainnovations.myfhb [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package com.globalmantrainnovations.myfhb' [debug] [ADB] 'com.globalmantrainnovations.myfhb' is installed [debug] [ADB] Getting package info for 'com.globalmantrainnovations.myfhb' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys package com.globalmantrainnovations.myfhb' [debug] [ADB] The version name of the installed 'com.globalmantrainnovations.myfhb' is greater or equal to the application version name ('1.0.0' >= '1.0.0') [debug] [ADB] There is no need to install/upgrade 'C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk' [debug] [UiAutomator2] Performing shallow cleanup of automation leftovers [debug] [UiAutomator2] The following obsolete sessions are still running: ["6347d8d0-a0e1-49e8-b366-e483a52d1649"] [debug] [UiAutomator2] Cleaning up the obsolete sessions [debug] [Instrumentation] . [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell am force-stop io.appium.uiautomator2.server.test' [UiAutomator2] Starting UIAutomator2 server 4.5.2 [UiAutomator2] Using UIAutomator2 server from 'C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.5.2.apk' and test from 'C:\Users\mhariharan\Downloads\appium-1.16.0\appium-1.16.0\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","803KPSL1691678","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"] [debug] [Instrumentation] Time: 151.238 [debug] [Instrumentation] [debug] [Instrumentation] OK (1 test) [debug] [Instrumentation] The process has exited with code 0 [debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body [WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"} [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}} [debug] [UiAutomator2] The initialization of the instrumentation process took 2154ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8201/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":0,"platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678"},"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":0,"platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678","deviceUDID":"803KPSL1691678"}],"alwaysMatch":{}}} [debug] [WD Proxy] Got response with status 200: {"sessionId":"ef15ef2d-2595-4221-9c84-a5d82e26fea4","value":{"sessionId":"ef15ef2d-2595-4221-9c84-a5d82e26fea4","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":0,"platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678"},"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":0,"platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678","deviceUDID":"803KPSL169... [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/appium/device/info] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"ef15ef2d-2595-4221-9c84-a5d82e26fea4","value":{"androidId":"7c4071310d361b52","manufacturer":"Google","model":"Pixel 2 XL","brand":"google","apiVersion":"29","platformVersion":"10","carrierName":"Jio 4G","realDisplaySize":"1440x2880","displayDensity":560,"networks":[{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":"ims","isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_CELLULAR","networkCapabilities":"NET_CAPABILITY_IMS,NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","linkUpstreamBandwidthKbps":14,"linkDownBandwidthKbps":14,"signalStrength":-2147483648,"networkSpecifier":"1","SSID":null}},{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","isConnected":true,"detailedState":"CONNECT... [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] Starting 'com.globalmantrainnovations.myfhb/.MainActivity and waiting for 'com.globalmantrainnovations.myfhb/.MainActivity' [debug] [ADB] Running 'C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 803KPSL1691678 shell am start -W -n com.globalmantrainnovations.myfhb/.MainActivity -S' [debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/appium/device/pixel_ratio] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"ef15ef2d-2595-4221-9c84-a5d82e26fea4","value":3.5} [debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/appium/device/system_bars] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"ef15ef2d-2595-4221-9c84-a5d82e26fea4","value":{"statusBar":98}} [debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8201/wd/hub/session/ef15ef2d-2595-4221-9c84-a5d82e26fea4/window/current/size] with body: {} [debug] [WD Proxy] Got response with status 200: {"sessionId":"ef15ef2d-2595-4221-9c84-a5d82e26fea4","value":{"height":2712,"width":1440}} [debug] [FlutterDriver] C:\Users\mhariharan\AppData\Local\Android\Sdk\platform-tools\adb.exe forward tcp:38350 tcp:38350 [FlutterDriver] Attempt #1 [FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:38350/XBeVIhDT7_8=/ws [FlutterDriver] Connected to ws://127.0.0.1:38350/XBeVIhDT7_8=/ws [Appium] New FlutterDriver session created successfully, session ad98101b-5142-4671-80b7-a4f275b64e31 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1596432163511 (10:52:43 GMT+0530 (India Standard Time)) [debug] [MJSONWP (ad98101b)] Cached the protocol value 'MJSONWP' for the new session ad98101b-5142-4671-80b7-a4f275b64e31 [debug] [MJSONWP (ad98101b)] Responding to client with driver.createSession() result: {"shell":null,"allowCors":false,"reboot":false,"ipa":null,"address":"0.0.0.0","port":4723,"basePath":"/wd/hub","callbackAddress":null,"callbackPort":null,"bootstrapPort":4724,"backendRetries":3,"sessionOverride":false,"launch":false,"logFile":null,"loglevel":"debug","logTimestamp":false,"localTimezone":false,"logNoColors":false,"webhook":null,"safari":false,"defaultDevice":false,"forceIphone":false,"forceIpad":false,"automationTraceTemplatePath":null,"instrumentsPath":null,"nodeconfig":null,"robotAddress":"0.0.0.0","robotPort":-1,"chromeDriverPort":null,"chromedriverExecutable":null,"showConfig":false,"noPermsCheck":false,"enforceStrictCaps":false,"isolateSimDevice":false,"tmpDir":"C:\Users\MHARIH~1\AppData\Local\Temp","traceDir":null,"debugLogSpacing":false,"suppressKillServer":false,"longStacktrace":false,"webkitDebugProxyPort":27753,"wdaLocalPort":8100,"defaultCapabilities":{},"relaxedSecurityEnabled":false,"allowInsecure":[],"denyInsecure":[],"defaultCommandTimeout":60,"keepArtifacts":false,"platf... [HTTP] <-- POST /wd/hub/session 200 13752 ms - 2169 [HTTP] [HTTP] --> GET /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31 [HTTP] {} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.getSession() with args: ["ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'getSession' [debug] [MJSONWP (ad98101b)] Responding to client with driver.getSession() result: {"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":36000,"platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678"} [HTTP] <-- GET /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31 200 22 ms - 401 [HTTP] [HTTP] --> GET /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31 [HTTP] {} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.getSession() with args: ["ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'getSession' [debug] [MJSONWP (ad98101b)] Responding to client with driver.getSession() result: {"app":"C:\Users\mhariharan\Downloads\myFHB\myfhb\build\app\outputs\apk\debug\app-debug.apk","appActivity":".MainActivity","appPackage":"com.globalmantrainnovations.myfhb","noReset":true,"newCommandTimeout":36000,"platformVersion":"10","automationName":"Flutter","platformName":"Android","deviceName":"803KPSL1691678"} [HTTP] <-- GET /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31 200 7 ms - 401 [HTTP] [HTTP] --> POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute [HTTP] {"script":"flutter:checkHealth","args":[]} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.execute() with args: ["flutter:checkHealth",[],"ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'execute' [debug] [FlutterDriver] >>> {"command":"get_health"} [debug] [FlutterDriver] <<< {"isError":false,"response":{"status":"ok"},"type":"_extensionType","method":"ext.flutter.driver"} | previous command get_health [debug] [MJSONWP (ad98101b)] Responding to client with driver.execute() result: "ok" [HTTP] <-- POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute 200 82 ms - 76 [HTTP] [HTTP] --> POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute [HTTP] {"script":"flutter:clearTimeline","args":[]} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.execute() with args: ["flutter:clearTimeline",[],"ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'execute' [FlutterDriver] {"code":-32601,"message":"Method not found","data":{"request":{"method":"_clearVMTimeline","params":{}}}} [debug] [MJSONWP (ad98101b)] Responding to client with driver.execute() result: null [HTTP] <-- POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute 200 42 ms - 76 [HTTP] [HTTP] --> POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute [HTTP] {"script":"flutter:forceGC","args":[]} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.execute() with args: ["flutter:forceGC",[],"ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'execute' [debug] [MJSONWP (ad98101b)] Responding to client with driver.execute() result: null [HTTP] <-- POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/execute 200 118 ms - 76 [HTTP] [HTTP] --> POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click [HTTP] {"id":"eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9"} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: ["eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9","ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'click' [debug] [FlutterDriver] >>> {"command":"tap","finderType":"ByText","text":"Enter your mobile number"} [HTTP] <-- POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click - - ms - - [HTTP] [HTTP] --> POST /wd/hub/session/ad98101b-5142-4671-80b7-a4f275b64e31/element/eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9/click [HTTP] {"id":"eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9"} [debug] [MJSONWP (ad98101b)] Calling AppiumDriver.click() with args: ["eyJmaW5kZXJUeXBlIjoiQnlUZXh0IiwidGV4dCI6IkVudGVyIHlvdXIgbW9iaWxlIG51bWJlciJ9","ad98101b-5142-4671-80b7-a4f275b64e31"] [debug] [FlutterDriver] Executing Flutter driver command 'click' [Appium] Received SIGINT - shutting down [Logcat] Logcat terminated with code 3221225786, signal null [Logcat] Logcat terminated with code 3221225786, signal null [debug] [Instrumentation] The process has exited with code 3221225786

how to resolve this issue, why its hanging when i try to find or click. but i can able to get checkhealth and change context from native to flutter. ican able to take screenshot.

some time am getting driver already dead like that, if anyone facesd same issue tell me how to resolve

advance thanks for solution

Originally posted by @harih71research in https://github.com/truongsinh/appium-flutter-driver/issues/41#issuecomment-667924367

shibupanda commented 4 years ago

@harih71research Did you check 'Enter your mobile number' text is available in flutter widget. Looks like it is not available. Please check with the dev team once for the finders. As of now we don't have inspector for flutter app available. Please share the widget tree if possible.

shibupanda commented 4 years ago

Closing due to inactivity. Please feel free to reopen.