question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selenium Hub 4.1.3 not working with Appium 1.22.3 through relay option

See original GitHub issue

What 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:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Apr 14, 2022

@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>
0reactions
github-actions[bot]commented, Jun 10, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Selenium Grid with Appium
Relay feature in Grid 4 allows you to proxy Appium requests to an appium server instance. Please check Relaying commands to a service...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Desired Capabilities in Selenium Testing With Examples
Read our full guide on Desired Capabilities in Selenium automation testing & Appium testing. See examples for different browsers and ...
Read more >
Selenium Grid 4 and Appium together in harmony ... - YouTube
Selenium 4 brings a brand new Grid, full of features and great things! Grid 4 has a new flexible architecture, allowing you to...
Read more >
Selenium-Jupiter - Boni García
OperaDriver has deprecated as of Selenium WebDriver 4.1.3. The recommended way to control Opera browsers starting in that version is through ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found