Cannot read property 'count' of undefined - appium-ios

[MJSONWP] Encountered internal error running command:
TypeError: Cannot read property 'count' of undefined.
I am getting the above error, while lauching appium on real device.
{
"platformName": "iOS",
"deviceName": "iPhoneX",
"bundleId": "com.test.app",
"platformVersion": "11.4",
"udid": "XXX",
"automationName": "XCUITest",
"noReset": "true",
"xcodeOrgId": "XXX",
"xcodeSigningId": "XXX",
"app": "/Users/sathya/android-sdks/platform-tools/test.app"
}

I had faced same error - Cannot read property 'count' of undefined.
Here are steps helped me resolved the error.
Stop and close all instances of Appium Inspector.
Restart Appium server.
Make sure that you don't run any Inspector window during your test execution.

Related

run nodemon watcher in web development project

When I try to run npm run watch-css to save changes this error appears.
{
"status": 3,
"message": "Incompatible units: '%' and 'rem'.",
"formatted": "Internal Error: Incompatible units: '%' and 'rem'.\n"
}
[nodemon] app crashed - waiting for file changes before starting...
I don't know what is the problem. I don't know how to solve it.The stylesheet SCSS is not saving and is not being rewritten. Before this I didn't make any changes.

Unable to install WebdriverAgent on iOS simulator, getting error on Appium Desktop

Error Received:
Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:8100
{
"platformName": "iOS",
"platformVersion": "15.4",
"deviceName": "iPhone 12",
"automationName": "XCUITest",
"UDID": "DEDB43E2-717B-44C6-963E-34847B5E8D90",
"app": "/Users/Tester/Library/Developer/Xcode/DerivedData/capital-behvzukvlynvsydkreldaexdsiot/Build/Products/Debug-iphonesimulator/CapitalAM.app"
I am using Appium Desktop.
This got fixed when I updated the Appium GUI to the latest version 1.22.2.

unable to create remote session-appium

I'm trying to connect appium inspector with desktop calculator through the following desired Capabilities
{
"platformName": "Windows",
"platformVersion": "10",
"deviceName": "WindowsPC",
"app": "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"
}
but I get an error:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: connect ECONNREFUSED 127.0.0.1:4724
The default connect port is 4723, if you use 4724, you are using the custom server configuration. Make sure that appium server is running on port 4724.
Also make sure that developer mode enabled
https://learn.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development
and you've started appium server, and appium desktop app as Administrator.

Uno-Platform - Debugging WASM - Is this a configuration issue, expected error, or am I doing it wrong?

WebAssembly.Net.Debugging.DevToolsProxy: Error: sending error response for id: msg-163B54A9DE82BF1FBD5A89BDBAE9E87:::71 -> [Result: IsOk: False, IsErr: True, Value: , Error: {
"code": -32000,
"message": "Violations are not supported for this target"
} ]
My app works as expected under UWP, however when run under WASM the UI is never rendered (stuck on splashscreen). When debugging in the browser, I see no errors in the console and none of my breakpoints are hit. I'm attempting to follow the guidance here https://github.com/unoplatform/Uno.Wasm.Bootstrap#how-to-use-the-visual-studio-2019-debugger but after breaking on exceptions in DebugStore.cs and BrowserDebugProxy.cs this is where I'm at.
Is this an expected error as in I'm trying to do something I'm not suppose to?
A configuration error as in I missed something?
Or my actual error as in this is my problem and I need to troubleshoot it?
Latest version of VS 2019, Chrome, Windows 10 19041.450, and nuget packages
Thank You

Error: connect ECONNREFUSED 127.0.0.1:8100

Could you help with this problem.
Appium 1.7.1
Xcode- 9.0
MacOS Siera 10.13
Capabilities:
{
"platformName": "iOS",
"platformVersion": "11.0",
"deviceName": "iPhone 6",
"app": "/Users/akoval/Downloads/BusyBox.app"
}
An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8100
Put Appium url value as
0.0.0.0:4723
Or
Localhost:4723
Remove the WDA from device and run the scripts again.
This would solve your problem
Try these caps these are working for me
serverCapabilities.setCapability("wdaStartupRetries", "4");
serverCapabilities.setCapability("iosInstallPause","8000" );
serverCapabilities.setCapability("wdaStartupRetryInterval", "20000");

Resources