appium / appium/java-client

Appium wait slow on specific devices

Open
#1,295 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.3k
Forks
752
Avg merge
6d 21h
Merged PRs (30d)
8

Description

Description

I have a question regarding performance on different devices. I developed my tests on a Samsung S8(Android 9) where tests are running smoothly, but when running them on any other devices like Samsung S10(Android 9) or Huawei P20 Lite (Android 9)there is the weird problem that the first text field takes extremely long to be found(it's like the wait method somehow freezes, the server log output as well). Once the the field is found entering text is fast.

I noticed in logcat output that there are a lot of 01-21 13:22:56.982 6921 6961 W QueryController: Could not detect idle state. messages and I wanted to try to change the waitForIdleTimeout but I can't find the setSetting method driver.setSetting(Setting.WAIT_FOR_IDLE_TIMEOUT, Duration.ofSeconds(5)); . How can I do this?

Environment

  • Appium version (or git revision) that exhibits the issue: 1.15.1
  • Desktop OS/version used to run Appium: MacOS

I use compile ('io.appium:java-client:7.2.0') to retrieve the java client through gradle

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Java client 7.2.0 API around driver.setSetting and Setting.WAIT_FOR_IDLE_TIMEOUT, then compare it with the settings supported by Appium 1.15.1. Reproduce the delay on the affected Android 9 devices and verify that the timeout can be applied and the first text field no longer stalls.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.