https://cypress.io logo
.children() can't find elements even when there is...
# i-need-help
s
I am calling .get('the parent element').children() and getting an error of time out because can't find the element, even when finding only the parent, the screenshot reveals that the children also loaded. So I don't know what to do. It refuses to find any children or element inside the parent element. I can provide with the html and code (is just the get)

https://cdn.discordapp.com/attachments/1105750462562582528/1105750462835195934/cypresserror.png

Solved it, found in Properties some ShadowResolverKey property and figured out it was a shadow element. used .get(parent).shadow().children()
w
Glad you got this worked out! There is a configuration option if you would like to always get this behavior. https://docs.cypress.io/guides/references/configuration#Global
It’s called includeShadowDom