Skip to content

[BUG] Cannot use regex with ids #22

@7ammer

Description

@7ammer

Description

A clear and concise description of the bug.

Steps to Reproduce

  1. Run command maestro-runner test my-flow.yaml
  2. With flow file (see below)
  3. See error (see bel)

Expected Behaviour

I expect maestro-runnner to be able use regex when selecting the ID value. See: https://docs.maestro.dev/maestro-flows/flow-control-and-logic/how-to-use-selectors#best-practices (Handle Dynamic Values with Regex)

Actual Behaviour

See error. Regex did not appear to be used.

Environment

  • OS: macOS 26.3
  • Go version: go1.26.0
  • maestro-runner version: 1.0.7
  • Executor: UIAutomator2??? (not sure)
  • Device/Simulator: pixel6 API 34 Emulator

Flow File

appId: abc
---
- assertVisible:
    id: my-item-id_.*

Error Output

assertVisible: id="my-item-id_.*" (17.0s)
      ╰─ Element not visible: context deadline exceeded: no such element: An element could not be located on the page using the given search parameters

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