[info] [HTTP] Waiting until the server is closed [info] [HTTP] Received server close event [info] [Appium] Welcome to Appium v1.22.2 [info] [Appium] Non-default server args: [info] [Appium] allowCors: true [info] [Appium] address: localhost [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [warn] [Appium] You have enabled CORS requests from any host. Be careful not to visit sites which could maliciously try to start Appium sessions on your machine [info] [Appium] Appium REST http interface listener started on localhost:4723 [info] [HTTP] --> DELETE /wd/hub/session/c211ef21-b93b-4c1d-a361-9f625df45a86 [info] [HTTP] {} [debug] [W3C (c211ef21)] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started [debug] [W3C (c211ef21)] at asyncHandler (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:243:15) [debug] [W3C (c211ef21)] at C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:423:15 [debug] [W3C (c211ef21)] at Layer.handle [as handle_request] (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [W3C (c211ef21)] at next (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\route.js:137:13) [debug] [W3C (c211ef21)] at Route.dispatch (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\route.js:112:3) [debug] [W3C (c211ef21)] at Layer.handle [as handle_request] (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [W3C (c211ef21)] at C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:281:22 [debug] [W3C (c211ef21)] at param (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:354:14) [debug] [W3C (c211ef21)] at param (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:365:14) [debug] [W3C (c211ef21)] at Function.process_params (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:410:3) [debug] [W3C (c211ef21)] at next (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10) [debug] [W3C (c211ef21)] at logger (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\morgan\index.js:144:5) [debug] [W3C (c211ef21)] at Layer.handle [as handle_request] (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [W3C (c211ef21)] at trim_prefix (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:317:13) [debug] [W3C (c211ef21)] at C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:284:7 [debug] [W3C (c211ef21)] at Function.process_params (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12) [debug] [W3C (c211ef21)] at next (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10) [debug] [W3C (c211ef21)] at jsonParser (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\body-parser\lib\types\json.js:110:7) [debug] [W3C (c211ef21)] at Layer.handle [as handle_request] (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:95:5) [debug] [W3C (c211ef21)] at trim_prefix (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:317:13) [debug] [W3C (c211ef21)] at C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:284:7 [debug] [W3C (c211ef21)] at Function.process_params (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12) [debug] [W3C (c211ef21)] at next (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10) [debug] [W3C (c211ef21)] at Layer.handle [as handle_request] (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\layer.js:91:12) [debug] [W3C (c211ef21)] at trim_prefix (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:317:13) [debug] [W3C (c211ef21)] at C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:284:7 [debug] [W3C (c211ef21)] at Function.process_params (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:335:12) [debug] [W3C (c211ef21)] at next (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\express\lib\router\index.js:275:10) [info] [HTTP] <-- DELETE /wd/hub/session/c211ef21-b93b-4c1d-a361-9f625df45a86 404 5 ms - 5116 [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 200 1 ms - 40 [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 2 ms - - [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1647003409309 (18:26:49 GMT+0530 (India Standard Time)) [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.2 creating new AndroidUiautomator2Driver (v1.70.1) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:deviceName": "OnePlus Nord", [debug] [BaseDriver] "appium:appPackage": "com.winit.starnews.hin", [debug] [BaseDriver] "appium:appActivity": "com.winit.starnews.hin.activities.Welcome", [debug] [BaseDriver] "appium:noReset": "true", [debug] [BaseDriver] "appium:systemPort": "8311", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [warn] [BaseDriver] Number capability passed in as string. Functionality may be compromised. [warn] [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior [warn] [BaseDriver] Capability 'systemPort' changed from string ('8311') to integer (8311). This may cause unexpected behavior [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] connectHardwareKeyboard [info] [BaseDriver] Session created with session id: e70958c9-235c-4a11-9a70-cab1f4a510e4 [info] [UiAutomator2] Starting 'com.winit.starnews.hin' directly on the device [info] [ADB] Using 'adb.exe' from 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"322ef360","state":"device"}] [info] [AndroidDriver] Using device: 322ef360 [info] [ADB] Using 'adb.exe' from 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'[debug] [ADB] Setting device id to 322ef360 [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 30 [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 11 [debug] [ADB] Device API level: 30 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1'' [warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 wait-for-device'[debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 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\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell dumpsys package io.appium.settings'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade 'C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell 'pgrep --help; echo $?'' [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell appops set io.appium.settings android:mock_location allow' [debug] [Logcat] Starting logs capture with command: C:\\Users\\user1\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s 322ef360 logcat -v threadtime [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8311 [error] [UiAutomator2] UiAutomator2 Server cannot start because the local port #8311 is busy. Make sure the port you provide via 'systemPort' capability is not occupied. This situation might often be a result of an inaccurate sessions management, e.g. old automation sessions on the same device must always be closed before starting new ones. [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell am force-stop com.winit.starnews.hin'[debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8311 [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 forward --remove tcp:8311' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1647003411363 (18:26:51 GMT+0530 (India Standard Time)) [debug] [W3C] Encountered internal error running command: Error: UiAutomator2 Server cannot start because the local port #8311 is busy. Make sure the port you provide via 'systemPort' capability is not occupied. This situation might often be a result of an inaccurate sessions management, e.g. old automation sessions on the same device must always be closed before starting new ones. [debug] [W3C] at Object.errorAndThrow (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:94:35) [debug] [W3C] at forwardPort (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:284:16) [debug] [W3C] at AndroidUiautomator2Driver.allocateSystemPort (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:294:14) [debug] [W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:383:5) [debug] [W3C] at AndroidUiautomator2Driver.createSession (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\driver.js:229:7) [debug] [W3C] at AppiumDriver.createSession (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\lib\appium.js:387:35) [info] [HTTP] <-- POST /wd/hub/session 500 2237 ms - 1275 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"appium:deviceName":"OnePlus Nord","platformName":"Android","appium:appPackage":"com.winit.starnews.hin","appium:appActivity":"com.winit.starnews.hin.activities.Welcome","appium:noReset":"true","appium:systemPort":"8311","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1647003418081 (18:26:58 GMT+0530 (India Standard Time)) [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.2 creating new AndroidUiautomator2Driver (v1.70.1) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:deviceName": "OnePlus Nord", [debug] [BaseDriver] "appium:appPackage": "com.winit.starnews.hin", [debug] [BaseDriver] "appium:appActivity": "com.winit.starnews.hin.activities.Welcome", [debug] [BaseDriver] "appium:noReset": "true", [debug] [BaseDriver] "appium:systemPort": "8200", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [warn] [BaseDriver] Number capability passed in as string. Functionality may be compromised. [warn] [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior [warn] [BaseDriver] Capability 'systemPort' changed from string ('8311') to integer (8311). This may cause unexpected behavior [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] connectHardwareKeyboard [info] [BaseDriver] Session created with session id: 041e300a-f046-4cc4-9f0a-27974b44e2bd [info] [UiAutomator2] Starting 'com.winit.starnews.hin' directly on the device [info] [ADB] Using 'adb.exe' from 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"322ef360","state":"device"}] [info] [AndroidDriver] Using device: 322ef360 [info] [ADB] Using 'adb.exe' from 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'[debug] [ADB] Setting device id to 322ef360 [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 30 [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 11 [debug] [ADB] Device API level: 30 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 wait-for-device' [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 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\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell dumpsys package io.appium.settings' [debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade 'C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell 'pgrep --help; echo $?''[debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell appops set io.appium.settings android:mock_location allow'[debug] [Logcat] Starting logs capture with command: C:\\Users\\user1\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s 322ef360 logcat -v threadtime [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8311[debug] [ADB] Forwarding system: 8311 to device: 6790 [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 forward tcp:8311 tcp:6790' [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 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\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 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.27.0' >= '4.27.0') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.27.0.apk [debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-v4.27.0.apk' [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk' [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 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\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-debug-androidTest.apk' [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk' [info] [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\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [info] [ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist [debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]] [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'[debug] [UiAutomator2] No app capability. Assuming it is already on the device [debug] [UiAutomator2] Performing shallow cleanup of automation leftovers [debug] [UiAutomator2] The following obsolete sessions are still running: ["13424e63-5260-4622-b73e-f012b6c4121f"] [debug] [UiAutomator2] Cleaning up 1 obsolete session[debug] [Instrumentation] .[debug] [Instrumentation] The process has exited with code 0[debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell am force-stop io.appium.uiautomator2.server.test'[info] [UiAutomator2] Starting UIAutomator2 server 4.27.0 [info] [UiAutomator2] Using UIAutomator2 server from 'C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.27.0.apk' and test from 'C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' [info] [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","322ef360","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"] [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8311/wd/hub/status] with no body [info] [WD Proxy] socket hang up [error] [UiAutomator2] The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [warn] [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell am force-stop com.winit.starnews.hin' [debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8311 [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 forward --remove tcp:8311' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running 'C:\Users\user1\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s 322ef360 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1647003454051 (18:27:34 GMT+0530 (India Standard Time)) [debug] [W3C] Encountered internal error running command: Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability [debug] [W3C] at Object.errorAndThrow (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:94:35) [debug] [W3C] at UiAutomator2Server.startSession (C:\Users\user1\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-uiautomator2-driver\lib\uiautomator2.js:236:15) [debug] [W3C] at runMicrotasks () [debug] [W3C] at processTicksAndRejections (internal/process/task_queues.js:85:5) [info] [HTTP] <-- POST /wd/hub/session 500 35975 ms - 1135 [info] [HTTP]