BrowserStack automation clicks twice on the button
15:06 01 Apr 2026

I have a test that fails on BrowserStack because a button seems to be tapped twice. Here are more details:

I’m using the Maestro framework(maestro.dev), and I have the following code:

- tapOn:
    text: ${output.NEW_POST}
    label: "Tap on New Post button"
- assertVisible:
    text: ${output.NEW_POST_PAGE}
    label: "Verify New Post page opened"
- tapOn:
    id: ${output.CLOSE_ICON}
    label: "Close New Post page"
- scrollUntilVisible:
    element:
      id: ${output.LIKE_ICON}

Locally, everything works perfectly with no issues. However, when the test runs on BrowserStack, the video shows that the CLOSE_ICON button is tapped, and then immediately after that, the BACK_ICON button is also tapped.

In my app, the BACK_ICON appears in the exact same position right after tapping CLOSE_ICON. So it looks like the test is tapping twice on the same spot.

Device: Google Pixel 7
OS: Android 13.0

How can I prevent this double tap behavior?

automation automated-tests double-click maestro