-
Notifications
You must be signed in to change notification settings - Fork 327
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
Type value is wrong in iframe inputs #558
Comments
Does the Stripe iframe have any JavaScript? |
Yea the Stripe Elements drop in is pretty Javascript heavy. For example, it validates credit card numbers on the fly and also formats the output with spaces and such. I forgot to mention, this test is pretty old and has always worked fine until recently. That said I understand something could have changed within Stripe just as much as it could have Dusk. |
Could be a timing issue, maybe Dusk is typing too fast. Try a pause after each character: foreach (str_split('4242424242424242') as $char) {
$browser->append('cardnumber', $char)->pause(100);
} |
That got it. Thanks so much. |
In one of my Dusk tests I'm testing a Stripe elements form. When I switch to the iframe for the card number it 9 times out of 10 inputs the number incorrectly. If I use a non iframe input everything works fine.
A sample of my test:
The failure screenshot (I included a standard input at the bottom):
Any ideas why this might be happening?
Thanks.
The text was updated successfully, but these errors were encountered: