Skip to content

Tap coordinates are incorrect after device rotation #5

@pg8wood

Description

@pg8wood

When using axe tap to automate taps on iOS devices, the specified -x and -y coordinates no longer map to the correct screen location after rotating the device. It looks like the coordinate system isn’t updated to reflect the new orientation. This causes taps to land in the wrong place.

Steps to Reproduce

  1. Launch any iOS app on a simulator or device.
  2. Rotate the device to landscape.
  3. Run a command such as axe tap -x 600 -y 450 --udid <udid>
  4. Observe that the tap does not land where expected.

Expected Behavior

Taps should land at the specified screen coordinates regardless of device orientation. The coordinate system should update automatically after rotation.

Actual Behavior

After rotation, the tap location is offset. In portrait orientation the coordinates are correct, but in landscape orientation the same coordinates tap a different spot.

Additional Info

  • Verified with a minimal SwiftUI test app that draws a marker at tap locations. AXe taps line up correctly in portrait but are shifted after rotation.
  • Attached video demonstrates the issue.

Environment

  • AXe version: v1.1.1
  • iOS: 18.5
  • Device: iPad Pro 13-inch (M4)
  • Xcode: 16.4.0
  • macOS: Sequoia 15.6.1
Screen.Recording.2025-10-08.at.5.18.07.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions