Open rajkumar-cp opened 3 years ago
Resolved after updting the way capability is used :
HashMap<String, String> customFindModules = new HashMap<>(); customFindModules.put("ai", "test-ai-classifier"); capability.setCapability("customFindModules", customFindModules);
Could you please take a look at the code and let me know what is wrong here.
PFB the images attached
Appium Log: info] [35m[Appium][39m Welcome to Appium v1.17.1 [info] [35m[Appium][39m Non-default server args: [info] [35m[Appium][39m allowInsecure: { [info] [35m[Appium][39m } [info] [35m[Appium][39m denyInsecure: { [info] [35m[Appium][39m } [info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"fullReset":false,"deviceName":"emulator-5554","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","customFindModules":"{\"ai\":\"test-ai-classifier\"}","automationName":"uiautomator2","autoGrantPermissions":true,"unicodeKeyboard":true,"udid":"emulator-5554","platformName":"Android","systemPort":8208}}[39m [debug] [35m[MJSONWP][39m Calling AppiumDriver.createSession() with args: [{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"fullReset":false,"deviceName":"emulator-5554","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","customFindModules":"{\"ai\":\"test-ai-classifier\"}","automationName":"uiautomator2","autoGrantPermissions":true,"unicodeKeyboard":true,"udid":"emulator-5554","platformName":"Android","systemPort":8208},null,null] [debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1603462399296 (19:43:19 GMT+0530 (India Standard Time)) [info] [35m[Appium][39m Appium v1.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session [debug] [35m[BaseDriver][39m Creating session with MJSONWP desired capabilities: { [debug] [35m[BaseDriver][39m "app": "/Users/aspiremac41/Desktop/TestAI/Flipkart.apk", [debug] [35m[BaseDriver][39m "appPackage": "com.flipkart.android", [debug] [35m[BaseDriver][39m "noReset": false, [debug] [35m[BaseDriver][39m "shouldUseCompactResponses": false, [debug] [35m[BaseDriver][39m "uiautomator2ServerLaunchTimeout": 60000, [debug] [35m[BaseDriver][39m "fullReset": false, [debug] [35m[BaseDriver][39m "deviceName": "emulator-5554", [debug] [35m[BaseDriver][39m "appActivity": "com.flipkart.android.activity.HomeFragmentHolderActivity", [debug] [35m[BaseDriver][39m "androidInstallTimeout": 180000, [debug] [35m[BaseDriver][39m "newCommandTimeout": 240, [debug] [35m[BaseDriver][39m "adbExecTimeout": 180000, [debug] [35m[BaseDriver][39m "platformVersion": "9", [debug] [35m[BaseDriver][39m "customFindModules": "{\"ai\":\"test-ai-classifier\"}", [debug] [35m[BaseDriver][39m "automationName": "uiautomator2", [debug] [35m[BaseDriver][39m "autoGrantPermissions": true, [debug] [35m[BaseDriver][39m "unicodeKeyboard": true, [debug] [35m[BaseDriver][39m "udid": "emulator-5554", [debug] [35m[BaseDriver][39m "platformName": "Android", [debug] [35m[BaseDriver][39m "systemPort": 8208 [debug] [35m[BaseDriver][39m } [warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by Appium: [warn] [35m[BaseDriver][39m shouldUseCompactResponses [warn] [35m[BaseDriver][39m customFindModules [info] [35m[BaseDriver][39m Session created with session id: b0b9a582-7120-4736-816d-48477c9ca24c[info] [35m[BaseDriver][39m Using local app '/Users/aspiremac41/Desktop/TestAI/Flipkart.apk' [debug] [35m[UiAutomator2][39m Checking whether app is actually present [info] [35m[ADB][39m Found 2 'build-tools' folders under '/Users/aspiremac41/Library/Android/sdk' (newest first): [info] [35m[ADB][39m /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2 [info] [35m[ADB][39m /Users/aspiremac41/Library/Android/sdk/build-tools/29.0.3 [info] [35m[ADB][39m Using 'adb' from '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb' [info] [35m[AndroidDriver][39m Retrieving device list [debug] [35m[ADB][39m Trying to find a connected android device [debug] [35m[ADB][39m Getting connected devices... [debug] [35m[ADB][39m Connected devices: [{"udid":"emulator-5554","state":"device"}] [info] [35m[AndroidDriver][39m Using device: emulator-5554 [info] [35m[ADB][39m Using 'adb' from '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb' [debug] [35m[ADB][39m Setting device id to emulator-5554 [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' [debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 28 [info] [35m[ADB][39m Getting device platform version [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release' [debug] [35m[ADB][39m Current device property 'ro.build.version.release': 9 [debug] [35m[ADB][39m Device API level: 28 [warn] [35m[UiAutomator2][39m Relaxing hidden api policy [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping' [debug] [35m[AndroidDriver][39m Pushing settings apk to device... [debug] [35m[ADB][39m Getting install status for io.appium.settings [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'[debug] [35m[ADB][39m 'io.appium.settings' is installed [debug] [35m[ADB][39m Getting package info for 'io.appium.settings' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' [debug] [35m[ADB][39m The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.1.0' >= '3.1.0') [debug] [35m[ADB][39m There is no need to install/upgrade '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' [debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?'' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\.appium\.settings' [debug] [35m[AndroidDriver][39m io.appium.settings is already running. There is no need to reset its permissions. [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow' [debug] [35m[Logcat][39m Starting logcat capture [debug] [35m[AndroidDriver][39m Enabling Unicode keyboard support [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get secure default_input_method' [debug] [35m[AndroidDriver][39m Unsetting previous IME io.appium.settings/.UnicodeIME [debug] [35m[AndroidDriver][39m Setting IME to 'io.appium.settings/.UnicodeIME' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell ime enable io.appium.settings/.UnicodeIME'[debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell ime set io.appium.settings/.UnicodeIME' [debug] [35m[UiAutomator2][39m Forwarding UiAutomator2 Server port 6790 to 8208 [debug] [35m[ADB][39m Forwarding system: 8208 to device: 6790 [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8208 tcp\:6790' [debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server' [debug] [35m[ADB][39m 'io.appium.uiautomator2.server' is installed [debug] [35m[ADB][39m Getting package info for 'io.appium.uiautomator2.server' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server' [debug] [35m[ADB][39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.5' >= '4.5.5') [debug] [35m[UiAutomator2][39m io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [35m[ADB][39m Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk [info] [35m[ADB][39m Using 'apksigner.jar' from '/Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar' [debug] [35m[ADB][39m Starting apksigner: /Users/aspiremac41/Library/Java/JavaVirtualMachines/corretto-1.8.0_252/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [35m[ADB][39m [debug] [35m[ADB][39m '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate [debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server.test [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test' [debug] [35m[ADB][39m 'io.appium.uiautomator2.server.test' is installed [debug] [35m[ADB][39m Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [35m[ADB][39m Starting apksigner: /Users/aspiremac41/Library/Java/JavaVirtualMachines/corretto-1.8.0_252/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [35m[ADB][39m [debug] [35m[ADB][39m '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate [info] [35m[UiAutomator2][39m Server packages are not going to be (re)installed [debug] [35m[UiAutomator2][39m Waiting up to 30000ms for services to be available [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'[debug] [35m[UiAutomator2][39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [debug] [35m[ADB][39m Checking app cert for /Users/aspiremac41/Desktop/TestAI/Flipkart.apk [debug] [35m[ADB][39m Starting apksigner: /Users/aspiremac41/Library/Java/JavaVirtualMachines/corretto-1.8.0_252/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Users/aspiremac41/Desktop/TestAI/Flipkart.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [35m[ADB][39m [debug] [35m[ADB][39m '/Users/aspiremac41/Desktop/TestAI/Flipkart.apk' is signed with the default certificate [debug] [35m[ADB][39m Getting install status for com.flipkart.android [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android'[debug] [35m[ADB][39m 'com.flipkart.android' is installed [debug] [35m[ADB][39m Getting package info for 'com.flipkart.android' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android' [debug] [35m[ADB][39m The version name of the installed 'com.flipkart.android' is greater or equal to the application version name ('6.16.0' >= '6.16.0') [debug] [35m[ADB][39m There is no need to install/upgrade '/Users/aspiremac41/Desktop/TestAI/Flipkart.apk' [info] [35m[AndroidDriver][39m Performing fast reset on 'com.flipkart.android' [debug] [35m[ADB][39m Getting install status for com.flipkart.android [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android' [debug] [35m[ADB][39m 'com.flipkart.android' is installed [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.flipkart.android' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear com.flipkart.android' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android'[debug] [35m[ADB][39m Retrieving requested permissions [debug] [35m[ADB][39m Retrieved 31 permission(s) from ["requested"] group(s) [debug] [35m[ADB][39m Retrieving granted permissions [debug] [35m[ADB][39m Retrieved 18 permission(s) from ["install","runtime"] group(s) [debug] [35m[ADB][39m Granting permissions ["android.permission.WRITE_EXTERNAL_STORAGE","android.permission.CAMERA","android.permission.READ_PHONE_STATE","android.permission.ACCESS_COARSE_LOCATION","android.permission.RECORD_AUDIO","android.permission.ACCESS_FINE_LOCATION","android.permission.READ_CONTACTS","android.permission.RECEIVE_SMS","android.permission.READ_SMS","android.permission.GET_ACCOUNTS","android.permission.READ_OWNER_DATA","android.permission.READ_EXTERNAL_STORAGE","android.permission.WRITE_CONTACTS"] to 'com.flipkart.android' [debug] [35m[ADB][39m Got the following command chunks to execute: [["pm","grant","com.flipkart.android","android.permission.WRITE_EXTERNAL_STORAGE",";","pm","grant","com.flipkart.android","android.permission.CAMERA",";","pm","grant","com.flipkart.android","android.permission.READ_PHONE_STATE",";","pm","grant","com.flipkart.android","android.permission.ACCESS_COARSE_LOCATION",";","pm","grant","com.flipkart.android","android.permission.RECORD_AUDIO",";","pm","grant","com.flipkart.android","android.permission.ACCESS_FINE_LOCATION",";","pm","grant","com.flipkart.android","android.permission.READ_CONTACTS",";","pm","grant","com.flipkart.android","android.permission.RECEIVE_SMS",";","pm","grant","com.flipkart.android","android.permission.READ_SMS",";","pm","grant","com.flipkart.android","android.permission.GET_ACCOUNTS",";","pm","grant","com.flipkart.android","android.permission.READ_OWNER_DATA",";","pm","grant","com.flipkart.android","android.permission.READ_EXTERNAL_STORAGE",";","pm","grant","com.flipkart.android","android.permission.WRITE_CONTACTS",";"]] [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm grant com.flipkart.android android.permission.WRITE_EXTERNAL_STORAGE \; pm grant com.flipkart.android android.permission.CAMERA \; pm grant com.flipkart.android android.permission.READ_PHONE_STATE \; pm grant com.flipkart.android android.permission.ACCESS_COARSE_LOCATION \; pm grant com.flipkart.android android.permission.RECORD_AUDIO \; pm grant com.flipkart.android android.permission.ACCESS_FINE_LOCATION \; pm grant com.flipkart.android android.permission.READ_CONTACTS \; pm grant com.flipkart.android android.permission.RECEIVE_SMS \; pm grant com.flipkart.android android.permission.READ_SMS \; pm grant com.flipkart.android android.permission.GET_ACCOUNTS \; pm grant com.flipkart.android android.permission.READ_OWNER_DATA \; pm grant com.flipkart.android android.permission.READ_EXTERNAL_STORAGE \; pm grant com.flipkart.android android.permission.WRITE_CONTACTS \;'[debug] [35m[AndroidDriver][39m Performed fast reset on the installed 'com.flipkart.android' application (stop and clear) [debug] [35m[UiAutomator2][39m Performing shallow cleanup of automation leftovers [debug] [35m[UiAutomator2][39m No obsolete sessions have been detected (Error: socket hang up) [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test' [info] [35m[UiAutomator2][39m Starting UIAutomator2 server 4.5.5 [info] [35m[UiAutomator2][39m Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [info] [35m[UiAutomator2][39m Waiting up to 60000ms for UiAutomator2 to be online... [debug] [35m[ADB][39m Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"][debug] [35m[Instrumentation][39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: [debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8208/wd/hub/status] with no body [info] [35m[WD Proxy][39m Got response with unknown status: {"code":"ECONNRESET"}[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8208/wd/hub/status] with no body [info] [35m[WD Proxy][39m Got response with unknown status: {"code":"ECONNRESET"}[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8208/wd/hub/status] with no body[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}} [debug] [35m[UiAutomator2][39m The initialization of the instrumentation process took 3126ms [debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession' [debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://127.0.0.1:8208/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"fullReset":false,"deviceName":"emulator-5554","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","customFindModules":"{\"ai\":\"test-ai-classifier\"}","automationName":"uiautomator2","autoGrantPermissions":true,"unicodeKeyboard":true,"udid":"emulator-5554","platformName":"Android","systemPort":8208},"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":600... [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":{"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"fullReset":false,"deviceName":"emulator-5554","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","customFindModules":"{\"ai\":\"test-ai-classifier\"}","automationName":"uiautomator2","autoGrantPermissions":true,"unicodeKeyboard":true,"udid":"emulator-5554","platformName":"Android","systemPort":8208},"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage"... [info] [35m[WD Proxy][39m Determined the downstream protocol as 'W3C' [debug] [35m[WD Proxy][39m Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/appium/device/info] with no body [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":{"androidId":"ef6cad655bc42628","manufacturer":"Google","model":"AOSP on IA Emulator","brand":"google","apiVersion":"28","platformVersion":"9","carrierName":"Android","realDisplaySize":"1080x1920","displayDensity":420,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":null,"isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,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":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-50,"networkSpecifier":null,"SSID":null}},{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","isConn... [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window' [info] [35m[AndroidDriver][39m Screen already unlocked, doing nothing [info] [35m[UiAutomator2][39m Starting 'com.flipkart.android/com.flipkart.android.activity.HomeFragmentHolderActivity and waiting for 'com.flipkart.android/com.flipkart.android.activity.HomeFragmentHolderActivity' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n com.flipkart.android/com.flipkart.android.activity.HomeFragmentHolderActivity -S'[debug] [35m[WD Proxy][39m Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/appium/device/pixel_ratio] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":2.625} [debug] [35m[WD Proxy][39m Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [35m[WD Proxy][39m Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/appium/device/system_bars] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":{"statusBar":63}} [debug] [35m[WD Proxy][39m Matched '/window/current/size' to command name 'getWindowSize' [debug] [35m[WD Proxy][39m Proxying [GET /window/current/size] to [GET http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/window/current/size] with body: {}[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":{"height":1794,"width":1080}} [info] [35m[Appium][39m New AndroidUiautomator2Driver session created successfully, session b0b9a582-7120-4736-816d-48477c9ca24c added to master session list [debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1603462412585 (19:43:32 GMT+0530 (India Standard Time)) [debug] [35m[MJSONWP (b0b9a582)][39m Cached the protocol value 'MJSONWP' for the new session b0b9a582-7120-4736-816d-48477c9ca24c [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.createSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"fullReset":false,"deviceName":"emulator-5554","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","customFindModules":"{\"ai\":\"test-ai-classifier\"}","automationName":"uiautomator2","autoGrantPermissions":true,"unicodeKeyboard":true,"udid":"emulator-5554","platformName":"Android","systemPort":8208},"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"fullReset":false,"deviceNam... [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[32m200[39m [90m13294 ms - 1761[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/timeouts[39m [info] [35m[HTTP][39m [90m{"type":"implicit","ms":0}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.timeouts() with args: ["implicit",0,null,null,null,"b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[BaseDriver][39m MJSONWP timeout arguments: {"type":"implicit","ms":0}} [debug] [35m[BaseDriver][39m Set implicit wait to 0ms [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.timeouts() result: null [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/timeouts [39m[32m200[39m [90m4 ms - 76[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/context[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.getCurrentContext() with args: ["b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/context [39m[32m200[39m [90m5 ms - 84[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/elements[39m [info] [35m[HTTP][39m [90m{"using":"id","value":"com.android.packageinstaller:id/permission_allow_button"}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.findElements() with args: ["id","com.android.packageinstaller:id/permission_allow_button","b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[BaseDriver][39m Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [35m[BaseDriver][39m Waiting up to 0 ms for condition [debug] [35m[WD Proxy][39m Matched '/elements' to command name 'findElements' [debug] [35m[WD Proxy][39m Proxying [POST /elements] to [POST http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/elements] with body: {"strategy":"id","selector":"com.android.packageinstaller:id/permission_allow_button","context":"","multiple":true}[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":[]} [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.findElements() result: [] [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/elements [39m[32m200[39m [90m270 ms - 74[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/context[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.getCurrentContext() with args: ["b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/context [39m[32m200[39m [90m4 ms - 84[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/elements[39m [info] [35m[HTTP][39m [90m{"using":"id","value":"com.android.packageinstaller:id/permission_allow_button"}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.findElements() with args: ["id","com.android.packageinstaller:id/permission_allow_button","b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[BaseDriver][39m Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator [debug] [35m[BaseDriver][39m Waiting up to 0 ms for condition [debug] [35m[WD Proxy][39m Matched '/elements' to command name 'findElements' [debug] [35m[WD Proxy][39m Proxying [POST /elements] to [POST http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/elements] with body: {"strategy":"id","selector":"com.android.packageinstaller:id/permission_allow_button","context":"","multiple":true}[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":[]} [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.findElements() result: [] [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/elements [39m[32m200[39m [90m237 ms - 74[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/timeouts[39m [info] [35m[HTTP][39m [90m{"type":"implicit","ms":1000}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.timeouts() with args: ["implicit",1000,null,null,null,"b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[BaseDriver][39m MJSONWP timeout arguments: {"type":"implicit","ms":1000}} [debug] [35m[BaseDriver][39m Set implicit wait to 1000ms [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.timeouts() result: null [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/timeouts [39m[32m200[39m [90m4 ms - 76[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/element[39m [info] [35m[HTTP][39m [90m{"using":"-custom","value":"ai:close"}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.findElement() with args: ["-custom","ai:close","b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[MJSONWP (b0b9a582)][39m Encountered internal error running command: Error: Invalid format for the 'customFindModules' capability. It should be an object with keys corresponding to the short names and values corresponding to the full names of the element finding plugins [debug] [35m[MJSONWP (b0b9a582)][39m at AndroidUiautomator2Driver.findByCustom (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:103:11) [debug] [35m[MJSONWP (b0b9a582)][39m at AndroidUiautomator2Driver.findElement (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:50:23) [debug] [35m[MJSONWP (b0b9a582)][39m at commandExecutor (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:330:9) [debug] [35m[MJSONWP (b0b9a582)][39m at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:125:12 [debug] [35m[MJSONWP (b0b9a582)][39m at AsyncLock._promiseTry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:249:31) [debug] [35m[MJSONWP (b0b9a582)][39m at exec (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:124:9) [debug] [35m[MJSONWP (b0b9a582)][39m at AsyncLock.acquire (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:140:3) [debug] [35m[MJSONWP (b0b9a582)][39m at AndroidUiautomator2Driver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:343:39) [debug] [35m[MJSONWP (b0b9a582)][39m at AppiumDriver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:534:36) [debug] [35m[MJSONWP (b0b9a582)][39m at processTicksAndRejections (internal/process/task_queues.js:85:5) [debug] [35m[MJSONWP (b0b9a582)][39m at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:309:21) [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/element [39m[31m500[39m [90m53 ms - 365[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/screenshot[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.getScreenshot() with args: ["b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[WD Proxy][39m Matched '/screenshot' to command name 'getScreenshot' [debug] [35m[WD Proxy][39m Proxying [GET /screenshot] to [GET http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a/screenshot] with no body[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":"iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIfAhkiAAAIABJREFU\neJzs3XecXGXZPvDrOedML9v7bjab3hNSCAkEAgk1VMGAoIJgQfG1oryIvvpTFF99BVSwoAICgoKU\nSOgtJJTQAgkpENK3993ZmZ16zvP7Y7bN7szubN9Jru\/ng7I77czszLLPde7nvsXUa\/dIEBERERER\nERGlMGW8D4CIiIiIiIiIaLgYcBARERERERFRymPAQUREREREREQpjwEHEREREREREaU8BhxERERE\nRERElPIYcBARERERERFRymPAQUREREREREQpjwEHEREREREREaU8BhxERERERERElPIYcBARERER\nERFRymPAQUREREREREQpTxvvAyBKdaoC5KWbcMYiJ1bNcWJagRmZDhUA0OzTcaA2hC27fXju\/TZU\nN0egG3Kcj5iIiIiIiOjoI6Zeu4erLaJBEgKYUWjBL67Ix9xJVqiKgBD930ZKwJASeyqC+PFDNdhx\nOACZwp8+VREoyNSgCKCykcENERERERGNLwYcRINUlGnCppunAsCAoUYincHGrK9\/BN0YoQMbI3aL\ngqn5ZlxwfBrWLHBCCOCVD714fGsr9teG4Auk2BMiIiIiognHpAlkOFRkuVRkOjWkO1VkOFS47Qq8\nAQMtXh1NXh3lDWGUN4TAc22D95fripGXlnhTRygiccmvDo\/hEQ0ft6jQqMp2a1izwIlFZTYovcIA\nCWD7QT9e3O5FvScyLsc3GFaTwD+vL8WcEuuQg41Onbf\/1ZWF+O49VcM\/uDGgCGDlLAeuPC0DS6ba\n4LSqXT\/TK07JwEUnpGHbfj\/+sbkZm3Z6Uy646clqEjhlnhNLptoGfVvDADbt9GL74QD8wRR+EYiI\niIjGkFkTWDHTjpW... [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIfAhkiAAAIABJREFU\neJzs3XecXGXZPvDrOedML9v7bjab3hNSCAkEAgk1VMGAoIJgQfG1oryIvvpTFF99BVSwoAICgoKU\nSOgtJJTQAgkpENK3993ZmZ16zvP7Y7bN7szubN9Jru/ng7I77czszLLPde7nvsXUa/dIEBERERER\nERGlMGW8D4CIiIiIiIiIaLgYcBARERERERFRymPAQUREREREREQpjwEHEREREREREaU8BhxERERE\nRERElPIYcBARERERERFRymPAQUREREREREQpjwEHEREREREREaU8BhxERERERERElPIYcBARERER\nERFRymPAQUREREREREQpTxvvAyBKdaoC5KWbcMYiJ1bNcWJagRmZDhUA0OzTcaA2hC27fXju/TZU\nN0egG3Kcj5iIiIiIiOjoI6Zeu4erLaJBEgKYUWjBL67Ix9xJVqiKgBD930ZKwJASeyqC+PFDNdhx\nOACZwp8+VREoyNSgCKCykcENERERERGNLwYcRINUlGnCppunAsCAoUYincHGrK9/BN0YoQMbI3aL\ngqn5ZlxwfBrWLHBCCOCVD714fGsr9teG4Auk2BMiIiIiognHpAlkOFRkuVRkOjWkO1VkOFS47Qq8\nAQMtXh1NXh3lDWGUN4TAc22D95fripGXlnhTRygiccmvDo/hEQ0ft6jQqMp2a1izwIlFZTYovcIA\nCWD7QT9e3O5FvScyLsc3GFaTwD+vL8WcEuuQg41Onbf/1ZWF+O49VcM/uDGgCGDlLAeuPC0DS6ba\n4LSqXT/TK07JwEUnpGHbfj/+sbkZm3Z6Uy646clqEjhlnhNLptoGfVvDADbt9GL74QD8wRR+EYiI\niIjGkFkTWDHTjpWzHFg5y4FZRZak/+YORST21wSxtyqEvZVB7CoPYOvedkR0ph79mVVkQUGGKeHl\noUjqvX... [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c/screenshot [39m[32m200[39m [90m438 ms - 104516[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mDELETE[39m [37m/wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[MJSONWP (b0b9a582)][39m Calling AppiumDriver.deleteSession() with args: ["b0b9a582-7120-4736-816d-48477c9ca24c"] [debug] [35m[BaseDriver][39m Event 'quitSessionRequested' logged at 1603462429466 (19:43:49 GMT+0530 (India Standard Time)) [info] [35m[Appium][39m Removing session b0b9a582-7120-4736-816d-48477c9ca24c from our master session list [debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session [debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session [debug] [35m[WD Proxy][39m Matched '/' to command name 'deleteSession' [debug] [35m[WD Proxy][39m Proxying [DELETE /] to [DELETE http://127.0.0.1:8208/wd/hub/session/b4656f4a-4c2e-41d2-b365-5f95fb63f06a] with no body [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"b4656f4a-4c2e-41d2-b365-5f95fb63f06a","value":null} [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.flipkart.android' [debug] [35m[Logcat][39m Stopping logcat capture [debug] [35m[ADB][39m Removing forwarded port socket connection: 8208 [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8208'[info] [35m[UiAutomator2][39m Restoring hidden api policy to the device default configuration [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps' [debug] [35m[Instrumentation][39m . [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'[debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'[debug] [35m[Instrumentation][39m Time: 23.084 [debug] [35m[Instrumentation][39m [debug] [35m[Instrumentation][39m OK (1 test) [debug] [35m[BaseDriver][39m Event 'quitSessionFinished' logged at 1603462430754 (19:43:50 GMT+0530 (India Standard Time)) [debug] [35m[MJSONWP (b0b9a582)][39m Received response: null [debug] [35m[MJSONWP (b0b9a582)][39m But deleting session, so not returning [debug] [35m[MJSONWP (b0b9a582)][39m Responding to client with driver.deleteSession() result: null [debug] [35m[MJSONWP (b0b9a582)][39m Destroying socket connection [info] [35m[HTTP][39m [37m<-- DELETE /wd/hub/session/b0b9a582-7120-4736-816d-48477c9ca24c [39m[32m200[39m [90m1290 ms - 76[39m [info] [35m[HTTP][39m [90m[39m[debug] [35m[Instrumentation][39m The process has exited with code 0[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m [info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"deviceName":"emulator-5554","fullReset":false,"appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","automationName":"uiautomator2","customFindModules":"{\"ai\":\"test-ai-classifier\"}","autoGrantPermissions":true,"unicodeKeyboard":true,"platformName":"Android","udid":"emulator-5554","systemPort":8208},"capabilities":{"firstMatch":[{"adbExecTimeout":180000,"appium:androidInstallTimeout":180000,"appium:app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appium:appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appium:appPackage":"com.flipkart.android","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","customFindModules[39m [debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appPackage":"com.flipkart.android","noReset":false,"shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"deviceName":"emulator-5554","fullReset":false,"appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","androidInstallTimeout":180000,"newCommandTimeout":240,"adbExecTimeout":180000,"platformVersion":"9","automationName":"uiautomator2","customFindModules":"{\"ai\":\"test-ai-classifier\"}","autoGrantPermissions":true,"unicodeKeyboard":true,"platformName":"Android","udid":"emulator-5554","systemPort":8208},null,{"firstMatch":[{"adbExecTimeout":180000,"appium:androidInstallTimeout":180000,"appium:app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appium:appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appium:appPackage":"com.flipkart.android","appium:autoGrantPermissions":true,"appium:automationName":"uiautomator2","customFindModules":"{\"ai\":\"test-ai-classifier\"}","appium:deviceNam... [debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1603463743536 (20:05:43 GMT+0530 (India Standard Time)) [warn] [35m[BaseDriver][39m The following capabilities are not standard capabilities and should have an extension prefix: [warn] [35m[BaseDriver][39m adbExecTimeout [warn] [35m[BaseDriver][39m customFindModules [warn] [35m[BaseDriver][39m shouldUseCompactResponses [warn] [35m[BaseDriver][39m uiautomator2ServerLaunchTimeout [info] [35m[Appium][39m Appium v1.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session [debug] [35m[BaseDriver][39m W3C capabilities and MJSONWP desired capabilities were provided [debug] [35m[BaseDriver][39m Creating session with W3C capabilities: { [debug] [35m[BaseDriver][39m "alwaysMatch": { [debug] [35m[BaseDriver][39m "appium:adbExecTimeout": 180000, [debug] [35m[BaseDriver][39m "appium:customFindModules": "{\"ai\":\"test-ai-classifier\"}", [debug] [35m[BaseDriver][39m "platformName": "android", [debug] [35m[BaseDriver][39m "appium:shouldUseCompactResponses": false, [debug] [35m[BaseDriver][39m "appium:uiautomator2ServerLaunchTimeout": 60000, [debug] [35m[BaseDriver][39m "appium:androidInstallTimeout": 180000, [debug] [35m[BaseDriver][39m "appium:app": "/Users/aspiremac41/Desktop/TestAI/Flipkart.apk", [debug] [35m[BaseDriver][39m "appium:appActivity": "com.flipkart.android.activity.HomeFragmentHolderActivity", [debug] [35m[BaseDriver][39m "appium:appPackage": "com.flipkart.android", [debug] [35m[BaseDriver][39m "appium:autoGrantPermissions": true, [debug] [35m[BaseDriver][39m "appium:automationName": "uiautomator2", [debug] [35m[BaseDriver][39m "appium:deviceName": "emulator-5554", [debug] [35m[BaseDriver][39m "appium:fullReset": false, [debug] [35m[BaseDriver][39m "appium:newCommandTimeout": 240, [debug] [35m[BaseDriver][39m "appium:noReset": false, [debug] [35m[BaseDriver][39m "appium:platformVersion": "9", [debug] [35m[BaseDriver][39m "appium:systemPort": 8208, [debug] [35m[BaseDriver][39m "appium:udid": "emulator-5554", [debug] [35m[BaseDriver][39m "appium:unicodeKeyboard": true [debug] [35m[BaseDriver][39m }, [debug] [35m[BaseDriver][39m "firstMatch": [ [debug] [35m[BaseDriver][39m {} [debug] [35m[BaseDriver][39m ] [debug] [35m[BaseDriver][39m } [warn] [35m[BaseDriver][39m The following capabilities were provided, but are not recognized by Appium: [warn] [35m[BaseDriver][39m customFindModules [warn] [35m[BaseDriver][39m shouldUseCompactResponses [info] [35m[BaseDriver][39m Session created with session id: f8162ee2-e0de-4f8e-ac18-8feb7c841ead [info] [35m[BaseDriver][39m Using local app '/Users/aspiremac41/Desktop/TestAI/Flipkart.apk' [debug] [35m[UiAutomator2][39m Checking whether app is actually present [info] [35m[ADB][39m Using 'adb' from '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb' [info] [35m[AndroidDriver][39m Retrieving device list [debug] [35m[ADB][39m Trying to find a connected android device [debug] [35m[ADB][39m Getting connected devices... [debug] [35m[ADB][39m Connected devices: [{"udid":"emulator-5554","state":"device"}] [info] [35m[AndroidDriver][39m Using device: emulator-5554 [info] [35m[ADB][39m Using 'adb' from '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb' [debug] [35m[ADB][39m Setting device id to emulator-5554 [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' [debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 28 [info] [35m[ADB][39m Getting device platform version [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release' [debug] [35m[ADB][39m Current device property 'ro.build.version.release': 9 [debug] [35m[ADB][39m Device API level: 28 [warn] [35m[UiAutomator2][39m Relaxing hidden api policy [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1'[debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping' [debug] [35m[AndroidDriver][39m Pushing settings apk to device... [debug] [35m[ADB][39m Getting install status for io.appium.settings [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' [debug] [35m[ADB][39m 'io.appium.settings' is installed [debug] [35m[ADB][39m Getting package info for 'io.appium.settings' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' [debug] [35m[ADB][39m The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.1.0' >= '3.1.0') [debug] [35m[ADB][39m There is no need to install/upgrade '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' [debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?'' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\.appium\.settings' [debug] [35m[AndroidDriver][39m io.appium.settings is already running. There is no need to reset its permissions. [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow' [debug] [35m[Logcat][39m Starting logcat capture [debug] [35m[AndroidDriver][39m Enabling Unicode keyboard support [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get secure default_input_method'[debug] [35m[AndroidDriver][39m Unsetting previous IME io.appium.settings/.UnicodeIME [debug] [35m[AndroidDriver][39m Setting IME to 'io.appium.settings/.UnicodeIME' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell ime enable io.appium.settings/.UnicodeIME' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell ime set io.appium.settings/.UnicodeIME'[debug] [35m[UiAutomator2][39m Forwarding UiAutomator2 Server port 6790 to 8208 [debug] [35m[ADB][39m Forwarding system: 8208 to device: 6790 [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8208 tcp\:6790' [debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server' [debug] [35m[ADB][39m 'io.appium.uiautomator2.server' is installed [debug] [35m[ADB][39m Getting package info for 'io.appium.uiautomator2.server' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server' [debug] [35m[ADB][39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.5.5' >= '4.5.5') [debug] [35m[UiAutomator2][39m io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [35m[ADB][39m Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk [info] [35m[ADB][39m Using 'apksigner.jar' from '/Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar' [debug] [35m[ADB][39m Starting apksigner: /Users/aspiremac41/Library/Java/JavaVirtualMachines/corretto-1.8.0_252/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [35m[ADB][39m [debug] [35m[ADB][39m '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate [debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server.test [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test' [debug] [35m[ADB][39m 'io.appium.uiautomator2.server.test' is installed [debug] [35m[ADB][39m Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [35m[ADB][39m Starting apksigner: /Users/aspiremac41/Library/Java/JavaVirtualMachines/corretto-1.8.0_252/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [35m[ADB][39m [debug] [35m[ADB][39m '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate [info] [35m[UiAutomator2][39m Server packages are not going to be (re)installed [debug] [35m[UiAutomator2][39m Waiting up to 30000ms for services to be available [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation' [debug] [35m[UiAutomator2][39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [debug] [35m[ADB][39m Checking app cert for /Users/aspiremac41/Desktop/TestAI/Flipkart.apk [debug] [35m[ADB][39m Starting apksigner: /Users/aspiremac41/Library/Java/JavaVirtualMachines/corretto-1.8.0_252/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/aspiremac41/Library/Android/sdk/build-tools/30.0.2/lib/apksigner.jar verify --print-certs /Users/aspiremac41/Desktop/TestAI/Flipkart.apk[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [35m[ADB][39m [debug] [35m[ADB][39m '/Users/aspiremac41/Desktop/TestAI/Flipkart.apk' is signed with the default certificate [debug] [35m[ADB][39m Getting install status for com.flipkart.android [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android' [debug] [35m[ADB][39m 'com.flipkart.android' is installed [debug] [35m[ADB][39m Getting package info for 'com.flipkart.android' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android' [debug] [35m[ADB][39m The version name of the installed 'com.flipkart.android' is greater or equal to the application version name ('6.16.0' >= '6.16.0') [debug] [35m[ADB][39m There is no need to install/upgrade '/Users/aspiremac41/Desktop/TestAI/Flipkart.apk' [info] [35m[AndroidDriver][39m Performing fast reset on 'com.flipkart.android' [debug] [35m[ADB][39m Getting install status for com.flipkart.android [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android' [debug] [35m[ADB][39m 'com.flipkart.android' is installed [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.flipkart.android' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear com.flipkart.android'[debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.flipkart.android'[debug] [35m[ADB][39m Retrieving requested permissions [debug] [35m[ADB][39m Retrieved 31 permission(s) from ["requested"] group(s) [debug] [35m[ADB][39m Retrieving granted permissions [debug] [35m[ADB][39m Retrieved 18 permission(s) from ["install","runtime"] group(s) [debug] [35m[ADB][39m Granting permissions ["android.permission.WRITE_EXTERNAL_STORAGE","android.permission.CAMERA","android.permission.READ_PHONE_STATE","android.permission.ACCESS_COARSE_LOCATION","android.permission.RECORD_AUDIO","android.permission.ACCESS_FINE_LOCATION","android.permission.READ_CONTACTS","android.permission.RECEIVE_SMS","android.permission.READ_SMS","android.permission.GET_ACCOUNTS","android.permission.READ_OWNER_DATA","android.permission.READ_EXTERNAL_STORAGE","android.permission.WRITE_CONTACTS"] to 'com.flipkart.android' [debug] [35m[ADB][39m Got the following command chunks to execute: [["pm","grant","com.flipkart.android","android.permission.WRITE_EXTERNAL_STORAGE",";","pm","grant","com.flipkart.android","android.permission.CAMERA",";","pm","grant","com.flipkart.android","android.permission.READ_PHONE_STATE",";","pm","grant","com.flipkart.android","android.permission.ACCESS_COARSE_LOCATION",";","pm","grant","com.flipkart.android","android.permission.RECORD_AUDIO",";","pm","grant","com.flipkart.android","android.permission.ACCESS_FINE_LOCATION",";","pm","grant","com.flipkart.android","android.permission.READ_CONTACTS",";","pm","grant","com.flipkart.android","android.permission.RECEIVE_SMS",";","pm","grant","com.flipkart.android","android.permission.READ_SMS",";","pm","grant","com.flipkart.android","android.permission.GET_ACCOUNTS",";","pm","grant","com.flipkart.android","android.permission.READ_OWNER_DATA",";","pm","grant","com.flipkart.android","android.permission.READ_EXTERNAL_STORAGE",";","pm","grant","com.flipkart.android","android.permission.WRITE_CONTACTS",";"]] [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm grant com.flipkart.android android.permission.WRITE_EXTERNAL_STORAGE \; pm grant com.flipkart.android android.permission.CAMERA \; pm grant com.flipkart.android android.permission.READ_PHONE_STATE \; pm grant com.flipkart.android android.permission.ACCESS_COARSE_LOCATION \; pm grant com.flipkart.android android.permission.RECORD_AUDIO \; pm grant com.flipkart.android android.permission.ACCESS_FINE_LOCATION \; pm grant com.flipkart.android android.permission.READ_CONTACTS \; pm grant com.flipkart.android android.permission.RECEIVE_SMS \; pm grant com.flipkart.android android.permission.READ_SMS \; pm grant com.flipkart.android android.permission.GET_ACCOUNTS \; pm grant com.flipkart.android android.permission.READ_OWNER_DATA \; pm grant com.flipkart.android android.permission.READ_EXTERNAL_STORAGE \; pm grant com.flipkart.android android.permission.WRITE_CONTACTS \;'[debug] [35m[AndroidDriver][39m Performed fast reset on the installed 'com.flipkart.android' application (stop and clear) [debug] [35m[UiAutomator2][39m Performing shallow cleanup of automation leftovers [debug] [35m[UiAutomator2][39m No obsolete sessions have been detected (Error: socket hang up) [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test' [info] [35m[UiAutomator2][39m Starting UIAutomator2 server 4.5.5 [info] [35m[UiAutomator2][39m Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [info] [35m[UiAutomator2][39m Waiting up to 60000ms for UiAutomator2 to be online... [debug] [35m[ADB][39m Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"][debug] [35m[Instrumentation][39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: [debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8208/wd/hub/status] with no body [info] [35m[WD Proxy][39m Got response with unknown status: {"code":"ECONNRESET"}[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8208/wd/hub/status] with no body [info] [35m[WD Proxy][39m Got response with unknown status: {"code":"ECONNRESET"}[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus' [debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8208/wd/hub/status] with no body [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}} [debug] [35m[UiAutomator2][39m The initialization of the instrumentation process took 3126ms [debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession' [debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://127.0.0.1:8208/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appPackage":"com.flipkart.android","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"emulator-5554","fullReset":false,"newCommandTimeout":240,"noReset":false,"platformVersion":"9","systemPort":8208,"udid":"emulator-5554","unicodeKeyboard":true},"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"... [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":{"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appPackage":"com.flipkart.android","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"emulator-5554","fullReset":false,"newCommandTimeout":240,"noReset":false,"platformVersion":"9","systemPort":8208,"udid":"emulator-5554","unicodeKeyboard":true},"platformName":"android","adbExecTimeout":180000,"customFindModules... [info] [35m[WD Proxy][39m Determined the downstream protocol as 'W3C' [debug] [35m[WD Proxy][39m Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb/appium/device/info] with no body[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":{"androidId":"ef6cad655bc42628","manufacturer":"Google","model":"AOSP on IA Emulator","brand":"google","apiVersion":"28","platformVersion":"9","carrierName":"Android","realDisplaySize":"1080x1920","displayDensity":420,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":null,"isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,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":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-50,"networkSpecifier":null,"SSID":null}},{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","isConn... [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window' [info] [35m[AndroidDriver][39m Screen already unlocked, doing nothing [info] [35m[UiAutomator2][39m Starting 'com.flipkart.android/com.flipkart.android.activity.HomeFragmentHolderActivity and waiting for 'com.flipkart.android/com.flipkart.android.activity.HomeFragmentHolderActivity' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n com.flipkart.android/com.flipkart.android.activity.HomeFragmentHolderActivity -S'[debug] [35m[WD Proxy][39m Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb/appium/device/pixel_ratio] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":2.625} [debug] [35m[WD Proxy][39m Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [35m[WD Proxy][39m Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb/appium/device/system_bars] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":{"statusBar":63}} [debug] [35m[WD Proxy][39m Matched '/window/current/size' to command name 'getWindowSize' [debug] [35m[WD Proxy][39m Proxying [GET /window/current/size] to [GET http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb/window/current/size] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":{"height":1794,"width":1080}} [info] [35m[Appium][39m New AndroidUiautomator2Driver session created successfully, session f8162ee2-e0de-4f8e-ac18-8feb7c841ead added to master session list [debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1603463756630 (20:05:56 GMT+0530 (India Standard Time)) [debug] [35m[W3C (f8162ee2)][39m Cached the protocol value 'W3C' for the new session f8162ee2-e0de-4f8e-ac18-8feb7c841ead [debug] [35m[W3C (f8162ee2)][39m 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","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appPackage":"com.flipkart.android","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"emulator-5554","fullReset":false,"newCommandTimeout":240,"noReset":false,"platformVersion":"9","systemPort":8208,"udid":"emulator-5554","unicodeKeyboard":true},"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallT... [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[32m200[39m [90m13096 ms - 1767[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[W3C (f8162ee2)][39m Calling AppiumDriver.getSession() with args: ["f8162ee2-e0de-4f8e-ac18-8feb7c841ead"] [debug] [35m[UiAutomator2][39m Getting session details from server to mix in [debug] [35m[WD Proxy][39m Matched '/' to command name 'getSession' [debug] [35m[WD Proxy][39m Proxying [GET /] to [GET http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":{}} [debug] [35m[W3C (f8162ee2)][39m Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appPackage":"com.flipkart.android","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"emulator-5554","fullReset":false,"newCommandTimeout":240,"noReset":false,"platformVersion":"9","systemPort":8208,"udid":"emulator-5554","unicodeKeyboard":true},"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"... [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead [39m[32m200[39m [90m96 ms - 1699[39m [info] [35m[HTTP][39m [90m[39m [info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[W3C (f8162ee2)][39m Calling AppiumDriver.getSession() with args: ["f8162ee2-e0de-4f8e-ac18-8feb7c841ead"] [debug] [35m[UiAutomator2][39m Getting session details from server to mix in [debug] [35m[WD Proxy][39m Matched '/' to command name 'getSession' [debug] [35m[WD Proxy][39m Proxying [GET /] to [GET http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb] with body: {} [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":{}} [debug] [35m[W3C (f8162ee2)][39m Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"app":"/Users/aspiremac41/Desktop/TestAI/Flipkart.apk","appActivity":"com.flipkart.android.activity.HomeFragmentHolderActivity","appPackage":"com.flipkart.android","autoGrantPermissions":true,"automationName":"uiautomator2","deviceName":"emulator-5554","fullReset":false,"newCommandTimeout":240,"noReset":false,"platformVersion":"9","systemPort":8208,"udid":"emulator-5554","unicodeKeyboard":true},"platformName":"android","adbExecTimeout":180000,"customFindModules":"{\"ai\":\"test-ai-classifier\"}","shouldUseCompactResponses":false,"uiautomator2ServerLaunchTimeout":60000,"androidInstallTimeout":180000,"... [info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead [39m[32m200[39m [90m18 ms - 1699[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead/element[39m [info] [35m[HTTP][39m [90m{"using":"-custom","value":"ai:search"}[39m [debug] [35m[W3C (f8162ee2)][39m Calling AppiumDriver.findElement() with args: ["-custom","ai:search","f8162ee2-e0de-4f8e-ac18-8feb7c841ead"] [debug] [35m[W3C (f8162ee2)][39m Encountered internal error running command: Error: Invalid format for the 'customFindModules' capability. It should be an object with keys corresponding to the short names and values corresponding to the full names of the element finding plugins [debug] [35m[W3C (f8162ee2)][39m at AndroidUiautomator2Driver.findByCustom (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:103:11) [debug] [35m[W3C (f8162ee2)][39m at AndroidUiautomator2Driver.findElement (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/commands/find.js:50:23) [debug] [35m[W3C (f8162ee2)][39m at commandExecutor (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:330:9) [debug] [35m[W3C (f8162ee2)][39m at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:125:12 [debug] [35m[W3C (f8162ee2)][39m at AsyncLock._promiseTry (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:249:31) [debug] [35m[W3C (f8162ee2)][39m at exec (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:124:9) [debug] [35m[W3C (f8162ee2)][39m at AsyncLock.acquire (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/async-lock/lib/index.js:140:3) [debug] [35m[W3C (f8162ee2)][39m at AndroidUiautomator2Driver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/basedriver/driver.js:343:39) [debug] [35m[W3C (f8162ee2)][39m at AppiumDriver.executeCommand (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/lib/appium.js:534:36) [debug] [35m[W3C (f8162ee2)][39m at processTicksAndRejections (internal/process/task_queues.js:85:5) [debug] [35m[W3C (f8162ee2)][39m at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:309:21) [info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead/element [39m[31m500[39m [90m23 ms - 951[39m [info] [35m[HTTP][39m [90m[39m[info] [35m[HTTP][39m [37m-->[39m [37mDELETE[39m [37m/wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead[39m [info] [35m[HTTP][39m [90m{}[39m [debug] [35m[W3C (f8162ee2)][39m Calling AppiumDriver.deleteSession() with args: ["f8162ee2-e0de-4f8e-ac18-8feb7c841ead"] [debug] [35m[BaseDriver][39m Event 'quitSessionRequested' logged at 1603463771871 (20:06:11 GMT+0530 (India Standard Time)) [info] [35m[Appium][39m Removing session f8162ee2-e0de-4f8e-ac18-8feb7c841ead from our master session list [debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session [debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session [debug] [35m[WD Proxy][39m Matched '/' to command name 'deleteSession' [debug] [35m[WD Proxy][39m Proxying [DELETE /] to [DELETE http://127.0.0.1:8208/wd/hub/session/7708dcd1-c2ff-4f2a-8248-0efbd07039cb] with no body [debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7708dcd1-c2ff-4f2a-8248-0efbd07039cb","value":null} [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.flipkart.android' [debug] [35m[Logcat][39m Stopping logcat capture [debug] [35m[ADB][39m Removing forwarded port socket connection: 8208 [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8208'[info] [35m[UiAutomator2][39m Restoring hidden api policy to the device default configuration [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps' [debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'[debug] [35m[Instrumentation][39m .[debug] [35m[ADB][39m Running '/Users/aspiremac41/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'[debug] [35m[BaseDriver][39m Event 'quitSessionFinished' logged at 1603463773056 (20:06:13 GMT+0530 (India Standard Time)) [debug] [35m[W3C (f8162ee2)][39m Received response: null [debug] [35m[W3C (f8162ee2)][39m But deleting session, so not returning [debug] [35m[W3C (f8162ee2)][39m Responding to client with driver.deleteSession() result: null [debug] [35m[W3C (f8162ee2)][39m Destroying socket connection [info] [35m[HTTP][39m [37m<-- DELETE /wd/hub/session/f8162ee2-e0de-4f8e-ac18-8feb7c841ead [39m[32m200[39m [90m1188 ms - 14[39m [info] [35m[HTTP][39m [90m[39m[debug] [35m[Instrumentation][39m Time: 22.142 [debug] [35m[Instrumentation][39m [debug] [35m[Instrumentation][39m OK (1 test) [debug] [35m[Instrumentation][39m The process has exited with code 0