iOS: WebView - Typing in a input without maxLength fails
Author: JussiIHCreated Sep 10, 2026Updated Sep 10, 2026
Labelstype: bug 🐞platform: iosstatus: triage
Did you test using the latest Detox?
- I have tested this issue on the latest Detox release and it still reproduces.
Did your test fail and you're not sure why?
- I have read the troubleshooting guide and it didn't help me.
What happened?
When trying to write text with .typeText() to an input without 'maxLength' prop within a WebView in iOS, the input gets focus, keyboard pops up but the typing itself fails.
E.g.
const element = detox.web.element(detox.by.web.name('testing');
await detox.expect(element).toExist();
await element.typeText('Test text', false);What was the expected behaviour?
The wanted text passed to .typeText() function to appear in the input within the WebView.
Help us reproduce this issue!
- Have an WebView with a text input component without the
maxLengthprop - With Detox try to type something to that input with detox.web.typeText()
- Issue should be visible with the text input still empty
In what environment did this happen?
Detox version: 20.51.4 React Native version: 0.86.0 Has Fabric (React Native's new rendering system) enabled: yes Node version: 22.x Device model: iPhone 17 simulator iOS version: 26.5 macOS version: 26.6.2 Xcode version: 26.6 Test-runner (select one): jest
Detox logs
No response
Device logs
No response
More data, please!
No response
Source: wix/Detox