-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
What happened?
We normally execute our e2e tests on chrome, but we want to add firefox support and we the SendKeys method is not working as expected with inputs that have validations.
The simplest example is:
We want to clear the text of an email input and then writte a new email on it. (works perfectly on Chrome)
emailInput.Clear();
emailInput.SendKeys("[email protected]");
But on the frontend we are getting:

My theory is that "the text stream" brokes when the element changes, because see how the input performs with human interaction. (We obviusly are using data-testid="email" to select the element. )
email.mp4
Input on error
<input data-testid="email" matinput="" type="text" name="email" class="mat-mdc-input-element ng-tns-c11-70 mat-mdc-form-field-input-control mdc-text-field__input cdk-text-field-autofill-monitored ng-dirty ng-touched ng-invalid" placeholder="E-Mail" id="mat-input-13" required="" aria-required="true" aria-invalid="true" aria-describedby="mat-mdc-error-37 mat-mdc-error-9">
Input ok
<input data-testid="email" matinput="" type="text" name="email" class="mat-mdc-input-element ng-tns-c11-8 ng-untouched ng-pristine mat-mdc-form-field-input-control mdc-text-field__input cdk-text-field-autofill-monitored ng-valid" placeholder="E-Mail" id="mat-input-6" required="" aria-required="true" aria-invalid="false">
We have a found a "dirty" workaround that is to substring the email to:
"example@c"
"ompany.c"
"om"
and doing the SendKeys 3 times.
But we have more inputs with different validation "urls, telephones etc..". and It would be a nightmare to handle them with that workaround.
Any clue?
Thanks in advance
How can we reproduce the issue?
emailInput.Clear();
emailInput.SendKeys("[email protected]");
### Relevant log output
```shell
No
Operating System
Windows 11
Selenium version
C# 4.25.0
What are the browser(s) and version(s) where you see this issue?
Firefox 130.0.1
What are the browser driver(s) and version(s) where you see this issue?
GeckoDriver 0.35.0
Are you using Selenium Grid?
No