Skip to content

[BUG] the tool should use name or label instead of content-desc on iOS #3

@kavithamahesh

Description

@kavithamahesh

Description

Tests are working very fast compared to Maestro locally, and I managed to establish a connection with Saucelabs real devices for iOS as well as Android.
My flow file is working fine for Android on Saucelabs, but the same is not working for iOS as the runner is failing to find the element.

Steps to Reproduce

maestro-runner
--driver appium
--platform android
--appium-url "correct url"
--caps caps-android-sauce.json
test playmaker.yaml

Expected Behavior

Element should be identified correctly as same as Android

Actual Behavior

Element is not identified correctly as same as Android [ The second field input didn't happen]

Environment

  • OS: [e.g., macOS 14.0, Ubuntu 22.04]
  • Go version: [e.g., 1.21.0]
  • maestro-runner version: [e.g., v0.1.3]
  • Executor: [e.g., Appium 2.x, Native]
  • Device/ [e.g.,iOS: 18 and 26 OS version devices , Android - 15 and 16 version devices]

Flow File

My simple flow file

  • launchApp:
    appId: com.test.app
  • waitForAnimationToEnd
  • tapOn:
    id: email-field
  • inputText: aaa@aaa.com

- hideKeyboard

- pressKey: Tab

  • tapOn:
    id: password-field
  • inputText: password

- hideKeyboard

- pressKey: Tab

  • runFlow:
    when:
    visible:
    id: login-button
    commands:
    - tapOn:
    id: login-button

Error Output

✓ launchApp (2.9s)
✓ tapOn (3.1s)
✓ inputText (719ms)
✓ tapOn (2.0s)
✓ inputText (520ms)
✓ runFlow (3.0s)
  ✓ tapOn (1.7s)

Additional Context

The run result shows that the runner executed the command, but it actually not happend

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions