I'm trying to access a slider within shadow dom in a Cypress test.
This is what the control looks like in dev-tools.
<input type="range">
#shadow-root (user-agent)
<div>
<div pseudo="-webkit-slider-runnable-track" id="track">
<div id="thumb"></div>
</div>
</div>
Have added includeShadowDom: true to config, but am unable to access div#thumb with either of these commands.
cy.get('div#thumb')
cy.get('input[type="range"]')
.find('div#thumb')
What am I doing wrong?