Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maestro does not recognize ids inside a WebView #2293

Open
1 task done
reisfernanda opened this issue Feb 7, 2025 · 2 comments
Open
1 task done

Maestro does not recognize ids inside a WebView #2293

reisfernanda opened this issue Feb 7, 2025 · 2 comments

Comments

@reisfernanda
Copy link

reisfernanda commented Feb 7, 2025

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

We are using Maestro to test a Flutter mobile app with a WebView that loads a React web app, but sometimes Maestro is not recognizing the elements by id, even if we have the id in the HTML tag for this component. This is happening with iPhone simulators. The same component id is recognized in Android emulators.

Maestro documentation says it supports WebViews on Android and iOS with no special configuration. Is there anything we are missing?

Actual results

This is the HTML tag when I inspect the web page:

Image

And Maestro Studio is not finding the component by id in iOS. Since this component is an icon, we can't interact with the component through a label.

Image

The same component is recognized in Android emulator (Pixel API 33):

Image

Expected results

Maestro should be able to interact with the component through its id.

About app

  • Flutter mobile app (Android and iOS) with a WebView that loads a React web app.
  • Flutter version 3.19.6
  • iPhone 12 simulator, iPhone 15 simulator

About environment

Java: openjdk 17.0.10
MacOS Sonoma 14.6.1 with Apple M3 Pro

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

1.39.9

How did you install Maestro?

Homebrew

Anything else?

No response

Copy link

linear bot commented Feb 7, 2025

@barbaramartina
Copy link

Adding to this thread. Since February 06, we are also experiencing very similar issues.
Web views tests were passing before, in February 05.

  • No changes in dependencies
  • no change in maestro config
  • no change in CI stack
  • no change in XCode build version
  • no change in github actions
  • no change in simulator used neither in ios version used for testing.

More over, tests are passing locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants