I am try to automation a screen that has multiple shadow elements. For example, I have to set data for a text field called 'Student Name'. This field has to traverse through multiple shadow elements.
cy.get('app-screen)
.shadow()
.find('app-toolbar')
.shadow()
.find('student-container')
.shadow()
.find('input[id="studentName"]')
.type("Viola");
Is there an alternative where I can specify like this:
cy.get('app-screen app-toolbar student-container input[id="studentName"]').type('Viola');
I came through a solution for similar one for protractor. Is there a solution available for Cypress like adding customer locator? Protractor: Unable select input element inside a shadow DOM (Polymer) using by.deepCss('input')
Thanks