-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Max Call Stack when trying to type in an input field type='text' #2339
Comments
This is a known issue with shadow dom. We plan to bake in proper support for shadow dom eventually, but it hasn't been prioritized as of yet. Make sure to 👍 that issue, since we take that into account when planning what to work on next. |
Would you know by when will it be possible to support it? |
I don't know when it will be prioritized. We're currently hiring so that we'll have more developers to tackle things like this. It would be great if you'd like to work on it and submit a pull request. |
@chrisbreiding That sounds good.. I will work on it and send the request. Is there any documentation to start off? Any guidelines for contribution? |
I'd start with our contributing doc. |
I'm curious what package would contain this functionality? |
It's in the |
We've added experimental shadow DOM support through the To use it, update to Cypress 4.8.0 and pass the following to your configuration file or however you pass in configuration. {
"experimentalShadowDomSupport": true
} See the Experiments for more information including how to use the new This is still experimental, so we'd like your help working through any bugs or unexpected behavior before releasing into the main product. If you encounter any issues using the new experimental shadow DOM feature, please open a new issue, filling in the issue template and providing a reproducible example. |
Current behavior:
I am working with web components, where I have managed to get to the desired input element using a DOM based helper function.
With the found desired DOM element, I am using cy.wrap(elementName) and then trying to type something in using cy.wrap(elementName).type('some info') which is resulting in rangeError: Maximum call stack size exceeded.
Not sure why.
Here's the screenshot of the same:
Console Log of the helper function output (which returns the desired element):
![image](https://user-images.githubusercontent.com/6471211/44092085-5452f954-9fc7-11e8-9b22-1e1f256ada88.png)
The reason I am using helper function to traverse through the DOM is because Cypress seems to have a limitation in traversing through the shadow-dom,
Code for the same:
I am able to use cy.get('custom-component-name') and get the results as long as there's no shadow-dom involved.
Desired behavior:
It should be able to type on the textfield.
Steps to reproduce:
No Steps to Reproduce as Such
Versions
The text was updated successfully, but these errors were encountered: