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

Support for testing system web browser (iOS) -> doesn't find web.element #4691

Open
1 task
km00776 opened this issue Jan 23, 2025 · 5 comments
Open
1 task

Comments

@km00776
Copy link

km00776 commented Jan 23, 2025

What happened?

I'm using expo-web-browser and expo-auth-session, but for detox testing it doesn't seem to recognise the web element

#4406 <- basically same issue as this, but I can't seem to find any solutions

What was the expected behaviour?

to be able to see the web.element

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

Detox version: 20.3.1
React Native version: 0.76.3
Has Fabric (React Native's new rendering system) enabled: (yes/no)
Node version: v23.5.0
Test-runner (select one): jest / other

Detox logs

Detox logs
 FAIL  src/auth.spec.ts (26.209 s)
  Auth flow
    ✕ should go to the signin screen  (17348 ms)

  ● Auth flow › should go to the signin screen 

    Test Failed: Failed to find web view with predicate: `` at index: `0`

Device logs

Device logs
paste logs here!

More data, please!

No response

@km00776 km00776 changed the title #4406 Support for testing system web browser (iOS) -> doesn't find web.element Jan 23, 2025
@km00776
Copy link
Author

km00776 commented Jan 24, 2025

@noomorph @imownbey @pedro

Image

@km00776
Copy link
Author

km00776 commented Jan 26, 2025

bump 2

@km00776
Copy link
Author

km00776 commented Jan 26, 2025

@nitayneeman @Niryo

@sergiomap
Copy link

I'm having the same issue with Xcode 16+

@asafkorem
Copy link
Contributor

Detox version: 20.3.1

Looks like your Detox version is quite old, not having the webview support on this version.

Also, sounds like you're are you trying to interact with a web browser (expo-web-browser uses SFSafariViewController), Detox does not support interactions with in-app browsers (i.e. SFSafariViewController), only webviews (WKWebview).

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

No branches or pull requests

3 participants