Skip to content

Setting the sliding speed to 200 milliseconds results in the need to wait for 50 seconds for the next operation. #999

Open

Description

@zhanglizheng123

My code calls the method:
for i in range(30): actions.w3c_actions.pointer_action.move_to_location(190, 700) actions.w3c_actions.pointer_action.pointer_down() actions.w3c_actions.pointer_action.pause(0.2) actions.w3c_actions.pointer_action.move_to_location(190, 200) actions.w3c_actions.pointer_action.release() actions.perform() time.sleep(1)

In actual performance, the interval between each slide exceeds 50 seconds. The following is the log of WDA:
Apr 2 14:45:25 WebDriverAgentRunner-Runner(WebDriverAgentLib)[1117] : Waiting up to 2s until com.lemon.lvoverseas is in idle state (including animations)
Apr 2 14:45:33 testmanagerd[599] : Not reporting XCTestTesting.2025-04-02-14:45:27.spindump.txt, doesn't match list of processes {DTServiceHub, WebDriverAgentRunner, assertiond, debugserver, runningboardd, FrontBoard, SpringBoard, xctest, testmanagerd, WebDriverAgentRunner-Runner, backboardd}
Apr 2 14:45:40 WebDriverAgentRunner-Runner(UIKitCore)[1117] : Background Task 2 (""), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
Apr 2 14:45:47 testmanagerd(RunningBoardServices)[599] : Updating configuration of monitor <RBSProcessMonitorConfiguration| id:M599-11 qos:17 predicates:[<RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.apple.springboard">>, <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.zlz1facebook.WebDriverAgentRunner.xctrunner">>, <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate "com.lemon.ee.lvoverseas">>] descriptor:<RBSProcessStateDescriptor| values:1 namespaces:[com.apple.frontboard.visibility]> events:0x0>
Apr 2 14:46:15 WebDriverAgentRunner-Runner(XCTAutomationSupport)[1117] : Evaluating query:

Activity

  1. KazuCocoa commented on Apr 2, 2025

    @KazuCocoa
    Member
  2. zhanglizheng123 commented on Apr 3, 2025

    @zhanglizheng123
    Author

    waitForIdleTimeout https://appium.github.io/appium-xcuitest-driver/latest/reference/settings/有帮助吗?

    Setting waitForIdleTimeout to 0 has no effect. My problem occurs in the following scenario where I can keep swiping up. If the upward swipe speed is set to 200ms, an issue will arise. However, there are no problems if it's not in this scenario or if the upward swipe speed is set to 800ms.
    https://github.com/user-attachments/assets/aca1724f-c74b-40ce-99b5-ba355c958653

  3. KazuCocoa commented on Apr 3, 2025

    @KazuCocoa
    Member

    This is an observation basis, but it looks like the XCTest framework could be weird with less than 500ms in the pause/duration. Only Apple knows of the internal so we can't say exact thing as non-Apple persons, but if the behavior changed with the given argument, it might indicate iOS internal stuff.

    Appium/WDA calls gestures as:
    https://appium.github.io/appium-xcuitest-driver/latest/guides/gestures/
    https://appium.github.io/appium-xcuitest-driver/latest/guides/input-events/

  4. locked and limited conversation to collaborators on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions