-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
scrollUntilVisible fails when used inside a repeat block if the tapped element changes its text from "Favourite" to "Unfavourite". The first iteration succeeds, but subsequent iterations time out and tapOn fails with no such element.
The same commands work correctly when written sequentially outside of a repeat block.
Steps to Reproduce
- Run command
maestro test my-flow.yaml - With flow file (see below)
- Observe failure inside
repeatafter the first iteration
Expected Behaviour
Each iteration should:
- Execute
scrollUntilVisiblefor"Favourite" - Tap
"Favourite" - Repeat successfully for the configured number of times
Actual Behaviour
The first iteration succeeds. On the second iteration:
scrollUntilVisibleruns but eventually times outtapOnfails withno such element- The
repeatblock fails withcontext deadline exceeded
Environment
-
OS: macOS (darwin/arm64)
-
Go version: go1.26.0
-
maestro-runner version: 1.0.8-rc2
- Commit: b01ce7d
- Built: 2026-02-27T14:52:52Z
-
Executor: UIAutomator2
-
Device/Simulator: Pixel 6 API 34 Emulator
Flow File
appId: abc
---
- repeat:
times: 3
commands:
- scrollUntilVisible:
element: "Favourite"
- tapOn: "Favourite"Error Output
✗ repeat (41.6s)
╰─ Element not found: context deadline exceeded: no such element: An element could not be located on the page using the given search parameters
✓ scrollUntilVisible (3.4s)
✓ tapOn (243ms)
⚠ scrollUntilVisible (20.1s)
✗ tapOn (17.3s)
╰─ context deadline exceeded: no such element: An element could not be located on the page using the given search parameters
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working