Selenium Hub 4.1.3 not working with Appium 1.22.3 through relay option
See original GitHub issueWhat happened?
Android app is keep crashing with below error.
01-20 13:02:22.982 17937 17958 E AndroidRuntime: FATAL EXCEPTION: Instr: androidx.test.runner.AndroidJUnitRunner 01-20 13:02:22.982 17937 17958 E AndroidRuntime: Process: io.appium.uiautomator2.server, PID: 17937 01-20 13:02:22.982 17937 17958 E AndroidRuntime: java.lang.IllegalStateException: UiAutomation not connected! 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at android.app.UiAutomation.throwIfNotConnectedLocked(UiAutomation.java:1198) 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at android.app.UiAutomation.disconnect(UiAutomation.java:294) 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at android.app.Instrumentation.finish(Instrumentation.java:248) 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at androidx.test.runner.MonitoringInstrumentation.finish(MonitoringInstrumentation.java:367) 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at androidx.test.runner.AndroidJUnitRunner.finish(AndroidJUnitRunner.java:415) 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:404) 01-20 13:02:22.982 17937 17958 E AndroidRuntime: at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2189)
How can we reproduce the issue?
Environment:
Appium: 1.22.3
Selenium Hub with relay node: 4.1.3
Platform: Android
java_client: 8.0.0
Selenium: 4
We are using DesiredCapabilities class with java_client 8.0.0.
TOML File:
[server]
port = 4444
[node]
detect-drivers = false
[relay]
# Default Appium server endpoint
url = "http://localhost:4723/wd/hub"
# url = "http://10.0.0.44:5555/wd/hub"
status-endpoint = "/status"
# Stereotypes supported by the service
configs = [
"1", "{\"browserName\": \"chrome\", \"platformName\": \"android\", \"appium:platformVersion\": \"10\"}"
]
Relevant log output
NA
Operating System
macOS
Selenium version
Java Selenium 4
What are the browser(s) and version(s) where you see this issue?
Android
What are the browser driver(s) and version(s) where you see this issue?
Android
Are you using Selenium Grid?
4.0.0
Issue Analytics
- State:
- Created a year ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
@muhammad-ir, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
<div>Triage this issue by using labels.
If information is missing, add a helpful comment and then
I-issue-template
label.If the issue is a question, add the
I-question
label.If the issue is valid but there is no time to troubleshoot it, consider adding the
help wanted
label.If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable
G-*
label, and it will provide the correct link and auto-close the issue.After troubleshooting the issue, please add the
R-awaiting answer
label.Thank you!
</div>This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.