Skip to content

bug: [XCUITest-driver] Key Down action must have a closing Key Up successor in #19670

@wswebcreation

Description

@wswebcreation

Do I have the most recent component updates?

  • I use the most recent available driver/plugin and server versions

Is the component officially supported by the Appium team?

  • I have verified the component repository is present under the Appium organization in GitHub

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Sending key actions according to the W3C (simple) spec with a pause is breaking the implementation for iOS, but not for Android

Expected Behavior

Pauses are working as expected in the keys implementation for iOS

Minimal Reproducible Example

This is with WebdriverIO, but can be done with all other languages

Failing

            await driver.performActions(
                [
                    {
                        'id': 'action1',
                        'type': 'key',
                        'actions': [
                            {
                                'type': 'keyDown',
                                'value': '3'
                            },
                            {
                                'type': 'pause',
                                'duration': 10
                            },
                            {
                                'type': 'keyUp',
                                'value': '3'
                            }
                        ]
                    }
                ]
            )

Works

            await driver.performActions(
                [
                    {
                        'id': 'action1',
                        'type': 'key',
                        'actions': [
                            {
                                'type': 'keyDown',
                                'value': '3'
                            },
                            {
                                'type': 'keyUp',
                                'value': '3'
                            }
                        ]
                    }
                ]
            )

Environment

  • Operating system: MacOS 14.2
  • Appium server version (output of appium --version): v2.4.1 (REV bab86d5de571015b63fd8fc30b47bbe072a1290e)
  • Appium driver(s) and their version(s): xcuitest@5.13.2 (automationName 'XCUITest')
  • Appium plugin(s) and their version(s): -
  • Node.js version (output of node --version): v18.19.0
  • npm version (output of npm --version): 10.2.3
  • Last component(s) version which did not exhibit the problem: not
  • Platform and version under test: iOS 17.2
  • Real device or emulator/simulator: Sims
Welcome to Appium v2.4.1 (REV bab86d5de571015b63fd8fc30b47bbe072a1290e)
Available drivers:
  - uiautomator2@2.41.0 (automationName 'UiAutomator2')
  - xcuitest@5.13.2 (automationName 'XCUITest')
  - espresso@2.32.2 (automationName 'Espresso')
  - flutter@2.3.0 (automationName 'Flutter')

Link to Appium Logs

No response

Further Information

appium.failing.log
appium.succeeds.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Infotypically non-actionable; needs author to respond

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions