appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.22k stars 757 forks source link

[Need Immediate Help] Script is getting terminated as soon as Page Object class is initialized while executing Test script through Eclipse for Android testing using Java+Eclipse+Maven+Appium+Emulator. #1515

Open RSuyal opened 3 years ago

RSuyal commented 3 years ago

The problem

Script is getting terminated as soon as Page Object class is initialized while executing Test script through Eclipse. Earlier every this was ok, only after once I used UiAutomator2 as Automation Name this issue started. Now I have again replaced Automation Name back to Appium but every time I initiate Page Object Class the program terminates and all test fails.

Environment

Details

If I do do not initialize page object and directly access the page elements all is ok, just when I try to locate the elements using page factory then the test case cant pass trough the page object initialization line.

earlier same code was working not sure what's wrong with this appium now. Have already reinstalled Appium Desktop as well but problem is still there.

Previous code which didn't had any issue in running is here: https://github.com/RSuyal/hybrid-framework-appium

Link to Appium logs

Create a GIST which is a paste of your full Appium logs, and link them here. Do NOT paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, always include Appium logs!

Code To Reproduce Issue [ Good To Have ]

Page object class code.

package pageobjects; import org.openqa.selenium.support.CacheLookup; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.pagefactory.AppiumFieldDecorator;

public class Calc {

AppiumDriver<MobileElement> ldriver;

public Calc(AppiumDriver<MobileElement> rdriver)
{
    ldriver=rdriver;
    PageFactory.initElements(new AppiumFieldDecorator(rdriver), this);
}   

@FindBy(id="com.google.android.calculator:id/digit_0")
@CacheLookup
MobileElement buttonNo0;

}

Test Script

package testcases; import org.openqa.selenium.By; import org.testng.annotations.Test; import pageobjects.Calc;

public class Calc_TC extends base.BaseClass {

@Test
public void verifyClickFunctonality0to9(){
    Calc obj=new Calc(driver);

    driver.findElement(By.id("com.google.android.calculator:id/digit_0")).click();
    driver.findElement(By.id("com.google.android.calculator:id/digit_1")).click();
    driver.findElement(By.id("com.google.android.calculator:id/digit_2")).click();
    driver.findElement(By.id("com.google.android.calculator:id/digit_3")).click();

}

}

Appium Server Logs:

[info] [HTTP] Waiting until the server is closed [info] [HTTP] Received server close event [info] [Appium] Welcome to Appium v1.21.0 [info] [Appium] Non-default server args: [info] [Appium] sessionOverride: true [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[debug] [HTTP] Request idempotency key: 530a83fe-5ae8-4735-a68d-ba11c2ec6834 [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","platformVersion":"11.0","automationName":"Appium","autoGrantPermissions":true,"platformName":"Android","deviceName":"Android Emulator"},"capabilities":{"firstMatch":[{"appium:app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","appium:autoGrantPermissions":true,"appium:automationName":"Appium","appium:deviceName":"Android Emulator","platformName":"android","appium:platformVersion":"11.0"}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","platformVersion":"11.0","automationName":"Appium","autoGrantPermissions":true,"platformName":"Android","deviceName":"Android Emulator"},null,{"firstMatch":[{"appium:app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","appium:autoGrantPermissions":true,"appium:automationName":"Appium","appium:deviceName":"Android Emulator","platformName":"android","appium:platformVersion":"11.0"}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1632073933833 (23:22:13 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.21.0 creating new AndroidUiautomator2Driver (v1.65.0) session [debug] [Appium] There are no active sessions for cleanup [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:app": "D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk", [debug] [BaseDriver] "appium:autoGrantPermissions": true, [debug] [BaseDriver] "appium:automationName": "Appium", [debug] [BaseDriver] "appium:deviceName": "Android Emulator", [debug] [BaseDriver] "appium:platformVersion": "11.0" [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [info] [BaseDriver] Session created with session id: 8b96643d-2103-4058-862c-b5e2be18cf32 [info] [BaseDriver] Using local app 'D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk' [debug] [UiAutomator2] Checking whether app is actually present [info] [ADB] Using 'adb.exe' from 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\rsuya\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":"emulator-5554","state":"device"}] [info] [AndroidDriver] Looking for a device with Android '11.0.0' [debug] [ADB] Setting device id to emulator-5554 [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 11 [info] [AndroidDriver] Using device: emulator-5554 [info] [ADB] Using 'adb.exe' from 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'[debug] [ADB] Setting device id to emulator-5554 [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[debug] [AndroidDriver] Parsing package and activity from app manifest [info] [ADB] Package name: 'com.google.android.calculator' [info] [ADB] Main activity name: 'com.android.calculator2.Calculator' [debug] [AndroidDriver] Parsed package and activity are: com.google.android.calculator/com.android.calculator2.Calculator [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device' [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping'[debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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.3.0' >= '3.3.0') [debug] [ADB] There is no need to install/upgrade 'C:\Program Files\Appium\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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''[debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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] [Logcat] Starting logs capture with command: C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 logcat -v threadtime[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:8200 tcp:6790'[info] [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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.21.1' >= '4.21.1') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl\appium-uiautomator2-server-v4.21.1.apk [info] [ADB] Using 'apksigner.jar' from 'C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar' [debug] [ADB] Starting apksigner: 'C:\Program Files\Java\jdk1.8.0_291\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar verify --print-certs C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl\appium-uiautomator2-server-v4.21.1.apk[debug] [ADB] apksigner stdout: Signer appium/appium#1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer appium/appium#1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer appium/appium#1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer appium/appium#1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.21.1.apk' [info] [ADB] 'C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl\appium-uiautomator2-server-v4.21.1.apk' is signed with the default certificate [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl\appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting apksigner: 'C:\Program Files\Java\jdk1.8.0_291\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar verify --print-certs C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl\appium-uiautomator2-server-debug-androidTest.apk[debug] [ADB] apksigner stdout: Signer appium/appium#1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer appium/appium#1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer appium/appium#1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer appium/appium#1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk' [info] [ADB] 'C:\Users\rsuya\AppData\Local\Temp\2021819-15440-phs70i.p7ehl\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate [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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'[debug] [ADB] Checking app cert for D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk [debug] [ADB] Starting apksigner: 'C:\Program Files\Java\jdk1.8.0_291\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar verify --print-certs D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk[debug] [ADB] apksigner stdout: Signer appium/appium#1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer appium/appium#1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer appium/appium#1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer appium/appium#1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] sha256 hash did match for 'Calculator.apk' [info] [ADB] 'D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk' is signed with the default certificate [debug] [ADB] Getting install status for com.google.android.calculator [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.calculator' [debug] [ADB] 'com.google.android.calculator' is installed [debug] [ADB] Getting package info for 'com.google.android.calculator' [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.calculator'[debug] [ADB] The version name of the installed 'com.google.android.calculator' is greater or equal to the application version name ('7.8.0' >= '7.8.0') [debug] [ADB] There is no need to install/upgrade 'D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk' [info] [AndroidDriver] Performing fast reset on 'com.google.android.calculator' [debug] [ADB] Getting install status for com.google.android.calculator [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.calculator'[debug] [ADB] 'com.google.android.calculator' is installed [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.google.android.calculator' [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm clear com.google.android.calculator'[debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.calculator'[debug] [ADB] Retrieving requested permissions [debug] [ADB] Retrieved 8 permissions from requested group [debug] [ADB] Retrieving granted permissions [debug] [ADB] Retrieved 4 permissions from install,runtime groups [info] [ADB] com.google.android.calculator contains no permissions available for granting [debug] [AndroidDriver] Performed fast reset on the installed 'com.google.android.calculator' application (stop and clear) [debug] [UiAutomator2] Performing shallow cleanup of automation leftovers [debug] [UiAutomator2] No obsolete sessions have been detected (socket hang up) [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test' [info] [UiAutomator2] Starting UIAutomator2 server 4.21.1 [info] [UiAutomator2] Using UIAutomator2 server from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk' and test from 'C:\Program Files\Appium\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","emulator-5554","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:8200/wd/hub/status] with no body [info] [WD Proxy] socket hang up[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:[debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/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:8200/wd/hub/status] with no body[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}} [debug] [UiAutomator2] The initialization of the instrumentation process took 2113ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/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","app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","autoGrantPermissions":true,"automationName":"Appium","deviceName":"Android Emulator","platformVersion":"11.0"},"platformName":"android","app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","autoGrantPermissions":true,"automationName":"Appium","deviceName":"emulator-5554","platformVersion":"11.0","deviceUDID":"emulator-5554","appPackage":"com.google.android.calculator"}],"alwaysMatch":{}}} [debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","autoGrantPermissions":true,"automationName":"Appium","deviceName":"Android Emulator","platformVersion":"11.0"},"platformName":"android","app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","autoGrantPermissions":true,"automationName":"Appium","deviceName":"emulator-5554","platformVersion":"11.0","deviceUDID":"emulator-5554","appPackage":"com.google.android.calculator"}],"alwaysMatch":{}},"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c"}} [info] [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/fa24cb60-ac41-44b9-b1b7-c376f2ecc14c/appium/device/info] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":{"androidId":"ee9035fa018d88ad","apiVersion":"30","bluetooth":{"state":"ON"},"brand":"google","carrierName":"Android","displayDensity":440,"locale":"en_US","manufacturer":"Google","model":"sdk_gphone_x86_64","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":30000,"linkUpstreamBandwidthKbps":15000,"networkCapabilities":"NET_CAPABILITY_MMS,NET_CAPABILITY_SUPL,NET_CAPABILITY_DUN,NET_CAPABILITY_FOTA,NET_CAPABILITY_IMS,NET_CAPABILITY_CBS,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","signalStrength":-2147483648,"transportTypes":"TRANSPORT_CELLULAR"},"detailedState":"CONNECTED","extraInfo":"epc.tmobile.com","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":13,"subtypeName":"LTE","type":0,"typeName... [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window'[info] [AndroidDriver] Screen already unlocked, doing nothing [info] [UiAutomator2] Starting 'com.google.android.calculator/com.android.calculator2.Calculator and waiting for 'com.google.android.calculator/com.android.calculator2.Calculator' [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -W -n com.google.android.calculator/com.android.calculator2.Calculator -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'com.google.android.calculator' and activity: 'com.android.calculator2.Calculator' to be focused [debug] [ADB] Possible activities, to be checked: 'com.android.calculator2.Calculator', 'com.google.android.calculator.com.android.calculator2.Calculator' [debug] [ADB] Getting focused package and activity [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window displays'[debug] [ADB] Found package: 'com.google.android.calculator' and fully qualified activity name : 'com.android.calculator2.Calculator' [debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/fa24cb60-ac41-44b9-b1b7-c376f2ecc14c/appium/device/pixel_ratio] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":2.75} [debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/fa24cb60-ac41-44b9-b1b7-c376f2ecc14c/appium/device/system_bars] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":{"statusBar":66}} [debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize' [debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/fa24cb60-ac41-44b9-b1b7-c376f2ecc14c/window/current/size] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":{"height":2088,"width":1080}} [info] [Appium] New AndroidUiautomator2Driver session created successfully, session 8b96643d-2103-4058-862c-b5e2be18cf32 added to master session list [debug] [BaseDriver] Event 'newSessionStarted' logged at 1632073945089 (23:22:25 GMT+0530 (India Standard Time)) [debug] [W3C (8b96643d)] Cached the protocol value 'W3C' for the new session 8b96643d-2103-4058-862c-b5e2be18cf32 [debug] [W3C (8b96643d)] 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","app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","autoGrantPermissions":true,"automationName":"Appium","deviceName":"Android Emulator","platformVersion":"11.0"},"platformName":"android","app":"D:\Workspace\Eclipse\Appium_Hybrid_Framework/apps/Calculator.apk","autoGrantPermissions":true,"automationName":"Appium","deviceName":"emulator-5554","platformVersion":"11","deviceUDID":"emulator-5554","appPackage":"com.google.android.calculator","deviceApiLevel":30,"deviceScreenSize":"1080x2220","deviceScreenDensity":440,"deviceModel":"sdk_gphone_x86_64","deviceManufacturer":"Google","pixelRatio":2.75,"statBarHeight":66,"viewportRect":{"left":0,"top":66,"width":1080,"height":2022}}} [info] [HTTP] <-- POST /wd/hub/session 200 11258 ms - 1018 [info] [HTTP] [info] [HTTP] --> GET /wd/hub/session/8b96643d-2103-4058-862c-b5e2be18cf32/screenshot [info] [HTTP] {} [debug] [W3C (8b96643d)] Calling AppiumDriver.getScreenshot() with args: ["8b96643d-2103-4058-862c-b5e2be18cf32"] [debug] [WD Proxy] Matched '/screenshot' to command name 'getScreenshot' [debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8200/wd/hub/session/fa24cb60-ac41-44b9-b1b7-c376f2ecc14c/screenshot] with no body[debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":"iVBORw0KGgoAAAANSUhEUgAABDgAAAisCAYAAACtR1KuAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\nCHwIZIgAACAASURBVHic7N15dJflnfj9z5dAIOwQQGRRQGVVFlfABbWOW/WxtVbbcez4a2fG3+w+\np+3Mmaczj51pO7/x6TKdGbW1Tp1WR6tWi0vVulEXQITKvoMCAgqEIASSEEjyff7gkDGEQJZvvsml\nr9c5PW3u3Pd1XxE8p9937vu6MtlsNhsAAAAACevU3hMAAAAAaC2BAwAAAEiewAEAAAAkT+AAAAAA\nkidwAAAAAMkTOAAAAIDkCRwAAABA8gQOAAAAIHkCBwAAAJA8gQMAAABInsABAAAAJE/gAAAAAJLX\nub0nANlsNkpKSuLll1+OFStWRGlp6VHPKygoiBNPPDHOPffcmD59evTo0SMymUyeZwsAAEBHlMlm\ns9n2ngSfTAcPHoyHH344FixYENXV1dGcv4qZTCaKiori2muvjUsuuUToAAAA+IQTOMi72trauOuu\nu2LlypXNihpHczhs3HPPPdGpU5pvXFVVVUV1dfVRv5fJZKKwsDA6d/awFQAAcGybN2+O4cOH5+Ve\nc+fOjV27dh3znGuuuSYvcznMpybyat26dfGDH/wgamtrczLe4UAyd+7cuOCCC3IyZj7V1tbGSy+9\nFOvWrTtq5OjevXtcdNFFcfrpp38sn1Kprq6O7du3R3V1dQwZMiS6dOnS3lMCAIAk/fznP4/+/fvn\nLXC8+eabsXbt2mOeI3DwsfXggw/GnDlzWv3UxtHMnDmzLnDs2LEjBg0alPN7tIXNmzfHokWLYsuW\nLY2e079//xg6dGj0798/jzPLj6VLl8bDDz8cVVVV8bnPfS4uvvji9p4SAAAk5+c//3nMnTs370Gh\no0nzmX6Sks1m41vf+lbMnj27... [debug] [W3C (8b96643d)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABDgAAAisCAYAAACtR1KuAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\nCHwIZIgAACAASURBVHic7N15dJflnfj9z5dAIOwQQGRRQGVVFlfABbWOW/WxtVbbcez4a2fG3+w+\np+3Mmaczj51pO7/x6TKdGbW1Tp1WR6tWi0vVulEXQITKvoMCAgqEIASSEEjyff7gkDGEQJZvvsml\nr9c5PW3u3Pd1XxE8p9937vu6MtlsNhsAAAAACevU3hMAAAAAaC2BAwAAAEiewAEAAAAkT+AAAAAA\nkidwAAAAAMkTOAAAAIDkCRwAAABA8gQOAAAAIHkCBwAAAJA8gQMAAABInsABAAAAJE/gAAAAAJLX\nub0nANlsNkpKSuLll1+OFStWRGlp6VHPKygoiBNPPDHOPffcmD59evTo0SMymUyeZwsAAEBHlMlm\ns9n2ngSfTAcPHoyHH344FixYENXV1dGcv4qZTCaKiori2muvjUsuuUToAAAA+IQTOMi72trauOuu\nu2LlypXNihpHczhs3HPPPdGpU5pvXFVVVUV1dfVRv5fJZKKwsDA6d/awFQAAcGybN2+O4cOH5+Ve\nc+fOjV27dh3znGuuuSYvcznMpybyat26dfGDH/wgamtrczLe4UAyd+7cuOCCC3IyZj7V1tbGSy+9\nFOvWrTtq5OjevXtcdNFFcfrpp38sn1Kprq6O7du3R3V1dQwZMiS6dOnS3lMCAIAk/fznP4/+/fvn\nLXC8+eabsXbt2mOeI3DwsfXggw/GnDlzWv3UxtHMnDmzLnDs2LEjBg0alPN7tIXNmzfHokWLYsuW\nLY2e079//xg6dGj0798/jzPLj6VLl8bDDz8cVVVV8bnPfS4uvvji9p4SAAAk5+c//3nMnTs370Gh\no0nzmX6Sks1m41vf+lbMnj27TeJGRERFRUXd2G+88Ua88sorbXKfXCsrK4uDBw8e85zy8vKorKzM\n04zyZ9... [info] [HTTP] <-- GET /wd/hub/session/8b96643d-2103-4058-862c-b5e2be18cf32/screenshot 200 253 ms - 78038 [info] [HTTP]  [info] [HTTP] --> DELETE /wd/hub/session/8b96643d-2103-4058-862c-b5e2be18cf32 [info] [HTTP] {} [debug] [W3C (8b96643d)] Calling AppiumDriver.deleteSession() with args: ["8b96643d-2103-4058-862c-b5e2be18cf32"] [debug] [BaseDriver] Event 'quitSessionRequested' logged at 1632073945559 (23:22:25 GMT+0530 (India Standard Time)) [info] [Appium] Removing session 8b96643d-2103-4058-862c-b5e2be18cf32 from our master session list [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8200/wd/hub/session/fa24cb60-ac41-44b9-b1b7-c376f2ecc14c] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"fa24cb60-ac41-44b9-b1b7-c376f2ecc14c","value":null} [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.google.android.calculator'[debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:8200'[info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 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] [Instrumentation] . [debug] [BaseDriver] Event 'quitSessionFinished' logged at 1632073946192 (23:22:26 GMT+0530 (India Standard Time)) [debug] [W3C (8b96643d)] Received response: null [debug] [W3C (8b96643d)] But deleting session, so not returning [debug] [W3C (8b96643d)] Responding to client with driver.deleteSession() result: null [info] [HTTP] <-- DELETE /wd/hub/session/8b96643d-2103-4058-862c-b5e2be18cf32 200 634 ms - 14 [info] [HTTP]  [debug] [Instrumentation] Time: 4.082 [debug] [Instrumentation] [debug] [Instrumentation] OK (1 test)[debug] [Instrumentation] The process has exited with code 0

KazuCocoa commented 3 years ago

Could you share the uia2's appium log? Probably https://discuss.appium.io/ also may help to ask.

mykola-mokhnach commented 3 years ago

I don't observe any issues on the server side there. The session has been created and deleted without any issues. There must be some problem either with the client script or the client library. Thus moving to the appropriate issues tracker.

RSuyal commented 3 years ago

@KazuCocoa Any Idea for the default location of "uia2" logs on Windows.

Just to make the issue clear.. I would like to tell that all works fine if I am not using page factory to locate the elements, only when I initialize page factory then there only the test terminates and test case is shown as failed.

Also if any one is available to connect via google meet to fix this.. Please comment here.

KazuCocoa commented 3 years ago

I'm not so familiar with Java client usage. https://discuss.appium.io/ may help to ask questions.

RSuyal commented 3 years ago

@mykola-mokhnach Can you please check these logs as I tried to run a project that I created in past which use to run correctly but now it's failing.. There must be something from server side.. Can you please help:

APPIUM Server Logs:

[HTTP] Waiting until the server is closed [HTTP] Received server close event [Appium] Welcome to Appium v1.21.0 [Appium] Non-default server args: [Appium] sessionOverride: true [Appium] allowInsecure: { [Appium] } [Appium] denyInsecure: { [Appium] } [Appium] Appium REST http interface listener started on 0.0.0.0:4723 [HTTP] Request idempotency key: fd69e807-d6b8-4d0b-abd5-4de62d4cb13b [HTTP] --> POST /wd/hub/session [HTTP] {"desiredCapabilities":{"appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","newCommandTimeout":300,"platformVersion":"11.0","automationName":"Appium","autoGrantPermissions":true,"platformName":"Android","deviceName":"Android Emulator"},"capabilities":{"firstMatch":[{"appium:appActivity":"com.android.calculator2.Calculator","appium:appPackage":"com.google.android.calculator","appium:autoGrantPermissions":true,"appium:automationName":"Appium","appium:deviceName":"Android Emulator","appium:newCommandTimeout":300,"platformName":"android","appium:platformVersion":"11.0"}]}} [W3C] Calling AppiumDriver.createSession() with args: [{"appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","newCommandTimeout":300,"platformVersion":"11.0","automationName":"Appium","autoGrantPermissions":true,"platformName":"Android","deviceName":"Android Emulator"},null,{"firstMatch":[{"appium:appActivity":"com.android.calculator2.Calculator","appium:appPackage":"com.google.android.calculator","appium:autoGrantPermissions":true,"appium:automationName":"Appium","appium:deviceName":"Android Emulator","appium:newCommandTimeout":300,"platformName":"android","appium:platformVersion":"11.0"}]}] [BaseDriver] Event 'newSessionRequested' logged at 1633686712530 (15:21:52 GMT+0530 (India Standard Time)) [Appium] [Appium] ====================================================================== [Appium] DEPRECATION WARNING: [Appium] [Appium] The 'automationName' capability was not provided in the desired [Appium] capabilities for this Android session [Appium] [Appium] Setting 'automationName=UiAutomator2' by default and using the [Appium] UiAutomator2 Driver [Appium] [Appium] The next major version of Appium (2.x) will require the [Appium] 'automationName' capability to be set for all sessions on all [Appium] platforms [Appium] [Appium] In previous versions (Appium <= 1.13.x), the default was [Appium] 'automationName=UiAutomator1' [Appium] [Appium] If you wish to use that automation instead of UiAutomator2, please [Appium] add 'automationName=UiAutomator1' to your desired capabilities [Appium] [Appium] For more information about drivers, please visit [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [Appium] 'Drivers' menu [Appium] [Appium] ====================================================================== [Appium] [Appium] Appium v1.21.0 creating new AndroidUiautomator2Driver (v1.65.0) session [Appium] There are no active sessions for cleanup [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [BaseDriver] Creating session with W3C capabilities: { [BaseDriver] "alwaysMatch": { [BaseDriver] "platformName": "android", [BaseDriver] "appium:appActivity": "com.android.calculator2.Calculator", [BaseDriver] "appium:appPackage": "com.google.android.calculator", [BaseDriver] "appium:autoGrantPermissions": true, [BaseDriver] "appium:automationName": "Appium", [BaseDriver] "appium:deviceName": "Android Emulator", [BaseDriver] "appium:newCommandTimeout": 300, [BaseDriver] "appium:platformVersion": "11.0" [BaseDriver] }, [BaseDriver] "firstMatch": [ [BaseDriver] {} [BaseDriver] ] [BaseDriver] } [BaseDriver] Session created with session id: 89aa9f74-3487-4118-8176-fa9ccec784dd [UiAutomator2] Starting 'com.google.android.calculator' directly on the device [ADB] Using 'adb.exe' from 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server' [AndroidDriver] Retrieving device list [ADB] Trying to find a connected android device [ADB] Getting connected devices [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}] [AndroidDriver] Looking for a device with Android '11.0.0' [ADB] Setting device id to emulator-5554 [ADB] Getting device platform version [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release' [ADB] Current device property 'ro.build.version.release': 11 [AndroidDriver] Using device: emulator-5554 [ADB] Using 'adb.exe' from 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server' [ADB] Setting device id to emulator-5554 [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' [ADB] Current device property 'ro.build.version.sdk': 30 [ADB] Getting device platform version [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release' [ADB] Current device property 'ro.build.version.release': 11 [ADB] Device API level: 30 [UiAutomator2] Relaxing hidden api policy [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1'' [AndroidDriver] No app sent in, not parsing package/activity [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping' [AndroidDriver] Pushing settings apk to device... [ADB] Getting install status for io.appium.settings [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' [ADB] 'io.appium.settings' is installed [ADB] Getting package info for 'io.appium.settings' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings' [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.3.0' >= '3.3.0') [ADB] There is no need to install/upgrade 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' [ADB] Getting IDs of all 'io.appium.settings' processes [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?'' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f ([[:blank:]]|\^)io.appium.settings([[:blank:]]|\$)' [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [Logcat] Starting logs capture with command: C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 logcat -v threadtime [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [ADB] Forwarding system: 8200 to device: 6790 [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:8200 tcp:6790' [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [ADB] Getting install status for io.appium.uiautomator2.server [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server' [ADB] 'io.appium.uiautomator2.server' is installed [ADB] Getting package info for 'io.appium.uiautomator2.server' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server' [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.21.1' >= '4.21.1') [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [ADB] Checking app cert for C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl\appium-uiautomator2-server-v4.21.1.apk [ADB] Using 'apksigner.jar' from 'C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar' [ADB] Starting apksigner: 'C:\Program Files\Java\jdk1.8.0_291\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar verify --print-certs C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl\appium-uiautomator2-server-v4.21.1.apk [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [ADB] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.21.1.apk' [ADB] 'C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl\appium-uiautomator2-server-v4.21.1.apk' is signed with the default certificate [ADB] Getting install status for io.appium.uiautomator2.server.test [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test' [ADB] 'io.appium.uiautomator2.server.test' is installed [ADB] Checking app cert for C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl\appium-uiautomator2-server-debug-androidTest.apk [ADB] Starting apksigner: 'C:\Program Files\Java\jdk1.8.0_291\bin\java.exe' -Xmx1024M -Xss1m -jar C:\Users\rsuya\AppData\Local\Android\Sdk\build-tools\31.0.0\lib\apksigner.jar verify --print-certs C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl\appium-uiautomator2-server-debug-androidTest.apk [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [ADB] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk' [ADB] 'C:\Users\rsuya\AppData\Local\Temp\202198-2560-78rilq.l41sl\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate [UiAutomator2] Server packages are not going to be (re)installed [UiAutomator2] Waiting up to 30000ms for services to be available [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm list instrumentation' [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist [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",";"]] [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;' [UiAutomator2] No app capability. Assuming it is already on the device [ADB] Getting install status for com.google.android.calculator [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.calculator' [ADB] 'com.google.android.calculator' is installed [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.google.android.calculator' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm clear com.google.android.calculator' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.google.android.calculator' [ADB] Retrieving requested permissions [ADB] Retrieved 8 permissions from requested group [ADB] Retrieving granted permissions [ADB] Retrieved 4 permissions from install,runtime groups [ADB] com.google.android.calculator contains no permissions available for granting [AndroidDriver] Performed fast reset on the installed 'com.google.android.calculator' application (stop and clear) [UiAutomator2] Performing shallow cleanup of automation leftovers [UiAutomator2] No obsolete sessions have been detected (socket hang up) [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test' [UiAutomator2] Starting UIAutomator2 server 4.21.1 [UiAutomator2] Using UIAutomator2 server from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.21.1.apk' and test from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"] [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] socket hang up [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] socket hang up [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] socket hang up [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] socket hang up [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] socket hang up [WD Proxy] Matched '/status' to command name 'getStatus' [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}} [UiAutomator2] The initialization of the instrumentation process took 5268ms [WD Proxy] Matched '/session' to command name 'createSession' [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/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","appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","autoGrantPermissions":true,"automationName":"Appium","deviceName":"Android Emulator","newCommandTimeout":300,"platformVersion":"11.0"},"platformName":"android","appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","autoGrantPermissions":true,"automationName":"Appium","deviceName":"emulator-5554","newCommandTimeout":300,"platformVersion":"11.0","deviceUDID":"emulator-5554"}],"alwaysMatch":{}}} [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","autoGrantPermissions":true,"automationName":"Appium","deviceName":"Android Emulator","newCommandTimeout":300,"platformVersion":"11.0"},"platformName":"android","appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","autoGrantPermissions":true,"automationName":"Appium","deviceName":"emulator-5554","newCommandTimeout":300,"platformVersion":"11.0","deviceUDID":"emulator-5554"}],"alwaysMatch":{}},"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664"}} [WD Proxy] Determined the downstream protocol as 'W3C' [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664/appium/device/info] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":{"androidId":"f4f09ed546feec11","apiVersion":"30","bluetooth":{"state":"ON"},"brand":"google","carrierName":"Android","displayDensity":440,"locale":"en_US","manufacturer":"Google","model":"sdk_gphone_x86_64","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":141000,"linkUpstreamBandwidthKbps":141000,"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","signalStrength":-30,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":"","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":0,"subtypeName":"","type":1,"typeName":"WIFI"},{"capabilities":{"SSID":null,"linkDownBandwidthKbps":30000,"linkUpstreamBandwidthKbps":15000,"networkCapabil... [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window' [AndroidDriver] Screen already unlocked, doing nothing [UiAutomator2] Starting 'com.google.android.calculator/com.android.calculator2.Calculator and waiting for 'com.google.android.calculator/com.android.calculator2.Calculator' [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -W -n com.google.android.calculator/com.android.calculator2.Calculator -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664/appium/device/pixel_ratio] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":2.75} [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars' [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664/appium/device/system_bars] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":{"statusBar":66}} [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize' [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664/window/current/size] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":{"height":2088,"width":1080}} [Appium] New AndroidUiautomator2Driver session created successfully, session 89aa9f74-3487-4118-8176-fa9ccec784dd added to master session list [BaseDriver] Event 'newSessionStarted' logged at 1633686733684 (15:22:13 GMT+0530 (India Standard Time)) [W3C (89aa9f74)] Cached the protocol value 'W3C' for the new session 89aa9f74-3487-4118-8176-fa9ccec784dd [W3C (89aa9f74)] 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","appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","autoGrantPermissions":true,"automationName":"Appium","deviceName":"Android Emulator","newCommandTimeout":300,"platformVersion":"11.0"},"platformName":"android","appActivity":"com.android.calculator2.Calculator","appPackage":"com.google.android.calculator","autoGrantPermissions":true,"automationName":"Appium","deviceName":"emulator-5554","newCommandTimeout":300,"platformVersion":"11","deviceUDID":"emulator-5554","deviceApiLevel":30,"deviceScreenSize":"1080x2220","deviceScreenDensity":440,"deviceModel":"sdk_gphone_x86_64","deviceManufacturer":"Google","pixelRatio":2.75,"statBarHeight":66,"viewportRect":{"left":0,"top":66,"width":1080,"height":2022}}} [HTTP] <-- POST /wd/hub/session 200 21158 ms - 1061 [HTTP] [HTTP] --> GET /wd/hub/session/89aa9f74-3487-4118-8176-fa9ccec784dd/screenshot [HTTP] {} [W3C (89aa9f74)] Calling AppiumDriver.getScreenshot() with args: ["89aa9f74-3487-4118-8176-fa9ccec784dd"] [WD Proxy] Matched '/screenshot' to command name 'getScreenshot' [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664/screenshot] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":"iVBORw0KGgoAAAANSUhEUgAABDgAAAisCAYAAACtR1KuAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\nCHwIZIgAACAASURBVHic7N15lFXlnfD736mCYp5HGZRBkUkGRUVUcCBBE70qKmqMCTdp22tId3t7\nfPt23k4PxrftpO2kOzExdGwzGTUanBPFEAVEFJlkHkSgAJmFgqqixnP/cFFtWVVQ0znF1s9nrax4\n9tln76cU1/J869nPk0qn0+kAAAAASLCclh4AAAAAQFMJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAA\nAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4rVq6QGQ\nHOl0Ovbt2xevvPJKrFmzJg4cOFDrebm5uXHaaafFBRdcEJMmTYoOHTpEKpXK8mgBAAD4NEml0+l0\nSw+CU1tZWVk8+uijsWTJkigvL4+G/JFJpVLRrl27uPbaa+Pyyy8XOgAAAMgIgYM6VVZWxve///1Y\nu3Ztg6JGbY6HjQcffDBycpL5ZFRJSUmUl5fX+l4qlYq8vLxo1cqkqCRLp9NRVlYWJSUlDf5sKpWK\n3NzcaNu2rZAHANDCioqKYufOnXH48OE4evRoFBUVRfv27aNjx47RpUuX6N+/f7Rv376lh9ns8vPz\nY+DAgVm516JFi+LgwYMnPOeaa67JyliO822MWm3atCkeeOCBqKysbJbrHQ8kixYtiksuuaRZrplN\nlZWVMXfu3Ni0aVOtkaN9+/YxefLkGD169Cfyy215eXns2bMnysvLo1+/ftG6deuWHlKzS6fTUVxc\nHKtXr4533323wZ/PycmJzp07x5gxY6JPnz5iFwBAFm3bti3Wr18fGzZsiPz8/CgoKDjpZzp37hwD\nBw6Ms88+O0aMGBGnn356Fkaa... [W3C (89aa9f74)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABDgAAAisCAYAAACtR1KuAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\nCHwIZIgAACAASURBVHic7N15lFXlnfD736mCYp5HGZRBkUkGRUVUcCBBE70qKmqMCTdp22tId3t7\nfPt23k4PxrftpO2kOzExdGwzGTUanBPFEAVEFJlkHkSgAJmFgqqixnP/cFFtWVVQ0znF1s9nrax4\n9tln76cU1/J869nPk0qn0+kAAAAASLCclh4AAAAAQFMJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAA\nAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4rVq6QGQ\nHOl0Ovbt2xevvPJKrFmzJg4cOFDrebm5uXHaaafFBRdcEJMmTYoOHTpEKpXK8mgBAAD4NEml0+l0\nSw+CU1tZWVk8+uijsWTJkigvL4+G/JFJpVLRrl27uPbaa+Pyyy8XOgAAAMgIgYM6VVZWxve///1Y\nu3Ztg6JGbY6HjQcffDBycpL5ZFRJSUmUl5fX+l4qlYq8vLxo1cqkqCRLp9NRVlYWJSUlDf5sKpWK\n3NzcaNu2rZAHANDCioqKYufOnXH48OE4evRoFBUVRfv27aNjx47RpUuX6N+/f7Rv376lh9ns8vPz\nY+DAgVm516JFi+LgwYMnPOeaa67JyliO822MWm3atCkeeOCBqKysbJbrHQ8kixYtiksuuaRZrplN\nlZWVMXfu3Ni0aVOtkaN9+/YxefLkGD169Cfyy215eXns2bMnysvLo1+/ftG6deuWHlKzS6fTUVxc\nHKtXr4533323wZ/PycmJzp07x5gxY6JPnz5iFwBAFm3bti3Wr18fGzZsiPz8/CgoKDjpZzp37hwD\nBw6Ms88+O0aMGBGnn356FkaaOT/96U+je/fuWQscb7zxRmzcuPGE5wgctLif//zn8frrrzd51kZt\n5syZUx... [HTTP] <-- GET /wd/hub/session/89aa9f74-3487-4118-8176-fa9ccec784dd/screenshot 200 732 ms - 76752 [HTTP] [HTTP] --> GET /wd/hub/session/89aa9f74-3487-4118-8176-fa9ccec784dd/screenshot [HTTP] {} [W3C (89aa9f74)] Calling AppiumDriver.getScreenshot() with args: ["89aa9f74-3487-4118-8176-fa9ccec784dd"] [WD Proxy] Matched '/screenshot' to command name 'getScreenshot' [WD Proxy] Proxying [GET /screenshot] to [GET http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664/screenshot] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":"iVBORw0KGgoAAAANSUhEUgAABDgAAAisCAYAAACtR1KuAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\nCHwIZIgAACAASURBVHic7N15lFXlnfD736mCYp5HGZRBkUkGRUVUcCBBE70qKmqMCTdp22tId3t7\nfPt23k4PxrftpO2kOzExdGwzGTUanBPFEAVEFJlkHkSgAJmFgqqixnP/cFFtWVVQ0znF1s9nrax4\n9tln76cU1/J869nPk0qn0+kAAAAASLCclh4AAAAAQFMJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAA\nAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4rVq6QGQ\nHOl0Ovbt2xevvPJKrFmzJg4cOFDrebm5uXHaaafFBRdcEJMmTYoOHTpEKpXK8mgBAAD4NEml0+l0\nSw+CU1tZWVk8+uijsWTJkigvL4+G/JFJpVLRrl27uPbaa+Pyyy8XOgAAAMgIgYM6VVZWxve///1Y\nu3Ztg6JGbY6HjQcffDBycpL5ZFRJSUmUl5fX+l4qlYq8vLxo1cqkqCRLp9NRVlYWJSUlDf5sKpWK\n3NzcaNu2rZAHANDCioqKYufOnXH48OE4evRoFBUVRfv27aNjx47RpUuX6N+/f7Rv376lh9ns8vPz\nY+DAgVm516JFi+LgwYMnPOeaa67JyliO822MWm3atCkeeOCBqKysbJbrHQ8kixYtiksuuaRZrplN\nlZWVMXfu3Ni0aVOtkaN9+/YxefLkGD169Cfyy215eXns2bMnysvLo1+/ftG6deuWHlKzS6fTUVxc\nHKtXr4533323wZ/PycmJzp07x5gxY6JPnz5iFwBAFm3bti3Wr18fGzZsiPz8/CgoKDjpZzp37hwD\nBw6Ms88+O0aMGBGnn356Fkaa... [W3C (89aa9f74)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABDgAAAisCAYAAACtR1KuAAAAAXNSR0IArs4c6QAAAARzQklUCAgI\nCHwIZIgAACAASURBVHic7N15lFXlnfD736mCYp5HGZRBkUkGRUVUcCBBE70qKmqMCTdp22tId3t7\nfPt23k4PxrftpO2kOzExdGwzGTUanBPFEAVEFJlkHkSgAJmFgqqixnP/cFFtWVVQ0znF1s9nrax4\n9tln76cU1/J869nPk0qn0+kAAAAASLCclh4AAAAAQFMJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAA\nAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4gkcAAAAQOIJHAAAAEDiCRwAAABA4rVq6QGQ\nHOl0Ovbt2xevvPJKrFmzJg4cOFDrebm5uXHaaafFBRdcEJMmTYoOHTpEKpXK8mgBAAD4NEml0+l0\nSw+CU1tZWVk8+uijsWTJkigvL4+G/JFJpVLRrl27uPbaa+Pyyy8XOgAAAMgIgYM6VVZWxve///1Y\nu3Ztg6JGbY6HjQcffDBycpL5ZFRJSUmUl5fX+l4qlYq8vLxo1cqkqCRLp9NRVlYWJSUlDf5sKpWK\n3NzcaNu2rZAHANDCioqKYufOnXH48OE4evRoFBUVRfv27aNjx47RpUuX6N+/f7Rv376lh9ns8vPz\nY+DAgVm516JFi+LgwYMnPOeaa67JyliO822MWm3atCkeeOCBqKysbJbrHQ8kixYtiksuuaRZrplN\nlZWVMXfu3Ni0aVOtkaN9+/YxefLkGD169Cfyy215eXns2bMnysvLo1+/ftG6deuWHlKzS6fTUVxc\nHKtXr4533323wZ/PycmJzp07x5gxY6JPnz5iFwBAFm3bti3Wr18fGzZsiPz8/CgoKDjpZzp37hwD\nBw6Ms88+O0aMGBGnn356FkaaOT/96U+je/fuWQscb7zxRmzcuPGE5wgctLif//zn8frrrzd51kZt\n5syZUx... [HTTP] <-- GET /wd/hub/session/89aa9f74-3487-4118-8176-fa9ccec784dd/screenshot 200 360 ms - 76752 [HTTP] [HTTP] --> DELETE /wd/hub/session/89aa9f74-3487-4118-8176-fa9ccec784dd [HTTP] {} [W3C (89aa9f74)] Calling AppiumDriver.deleteSession() with args: ["89aa9f74-3487-4118-8176-fa9ccec784dd"] [BaseDriver] Event 'quitSessionRequested' logged at 1633686736689 (15:22:16 GMT+0530 (India Standard Time)) [Appium] Removing session 89aa9f74-3487-4118-8176-fa9ccec784dd from our master session list [UiAutomator2] Deleting UiAutomator2 session [UiAutomator2] Deleting UiAutomator2 server session [WD Proxy] Matched '/' to command name 'deleteSession' [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8200/wd/hub/session/237e1385-edaf-4eca-971d-ed6f748ff664] with no body [WD Proxy] Got response with status 200: {"sessionId":"237e1385-edaf-4eca-971d-ed6f748ff664","value":null} [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.google.android.calculator' [Logcat] Stopping logcat capture [ADB] Removing forwarded port socket connection: 8200 [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:8200' [Instrumentation] . [Instrumentation] Time: 9.383 [Instrumentation] [Instrumentation] OK (1 test) [UiAutomator2] Restoring hidden api policy to the device default configuration [ADB] Running 'C:\Users\rsuya\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' [BaseDriver] Event 'quitSessionFinished' logged at 1633686738082 (15:22:18 GMT+0530 (India Standard Time)) [W3C (89aa9f74)] Received response: null [W3C (89aa9f74)] But deleting session, so not returning [W3C (89aa9f74)] Responding to client with driver.deleteSession() result: null [HTTP] <-- DELETE /wd/hub/session/89aa9f74-3487-4118-8176-fa9ccec784dd 200 1396 ms - 14 [HTTP] [Instrumentation] The process has exited with code 0

mykola-mokhnach commented 3 years ago

I don't see no errors in the log above. What makes you think this is a server issue?

RSuyal commented 3 years ago

@mykola-mokhnach There are no changes made in the script and same script is running on other system without any error... what I can observe is.. we are not getting locators from server side, and this is where program breaks.

If you can do something about this it will be a great help.. Thanks!

RSuyal commented 3 years ago

This is the link for my test project: https://github.com/RSuyal/hybrid-framework-appium

mykola-mokhnach commented 3 years ago

we are not getting locators from server side

Sorry, I don't quite understand what that sentence means. Could you provide a step-by-step issue description with the actual and the expected results?