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

Disabled input issue #12

Closed
axelmarciano opened this issue Dec 7, 2021 · 0 comments
Closed

Disabled input issue #12

axelmarciano opened this issue Dec 7, 2021 · 0 comments

Comments

@axelmarciano
Copy link

axelmarciano commented Dec 7, 2021

Hi 👋,
I'm encoutering the "disabled input issue" randomly on my test (10% of time).
This error was already discussed in this issue but it's not working for my case.

This is the error :

CypressError: `cy.type()` failed because it targeted a disabled element.

The element typed into was:

  > <input class="InputElement is-empty Input Input--empty" autocomplete="cc-number" autocorrect="off" spellcheck="false" type="text" name="cardnumber" data-elements-stable-field-name="cardNumber" inputmode="numeric" aria-label="Credit or debit card number" placeholder="1234 1234 1234 1234" aria-invalid="false" value="">

I have tried to add a cy.wrap(input).click(); before typing and it seems to work better.

Are you encoutering this issue or working on a PR already ?

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

No branches or pull requests

1 participant