-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
WebView TypeText not working #4426
Comments
I'm able to reproduce this @alexandravychytill. Investigating |
Related: https://w3.org/Bugs/Public/show_bug.cgi?id=24796 |
Hey @alexandravychytill, a fix for this issue was released with the latest Detox version (20.19.5). |
@asafkorem I'm still seeing this issue on Detox 20.20.3. The field focuses, but the text does not get typed. |
@asafkorem I am still hitting this issue too, same as @swain - the field focuses but the text does not get typed. I will open up a new issue to track this |
@asafkorem I made a reproduction project for iOS. I removed the node_modules and ios/Pods folder to make it smaller. Make sure you you disable new architecture with Not the web view library is 13.6.4. It's not the latest and we are restricted to that version since we are still on expo 50 in our app. |
What happened?
When running on iOS type text functions is not working, even though on android it works.
Log:
Test Failed: Failed to evaluate JavaScript on web view: <RNCWKWebView: 0x1078ba000; frame = (0 0; 393 713.333); gestureRecognizers = <NSArray: 0x600000ce33f0>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x6000005577c0>>. JS exception: The input element's type ('email') does not support selection.
Code:
await web.element(by.web.id('identifier')).typeText('Hello World!');
What was the expected behaviour?
TypeText should work
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.19.4
React Native version: 0.72.0
Has Fabric (React Native's new rendering system) enabled: yes
Node version: >=16
Device model: iPhone 15
iOS version: 17.2
macOS version: 14.4
Xcode version: 15.2
Test-runner (select one): jest
Detox logs
Detox logs
Device logs
Device logs
More data, please!
No response
The text was updated successfully, but these errors were encountered: