The question is as given in the title, ie, to access element whose parent is hidden. The problem is that, as per the cypress.io docs :
An element is
From the docs, Cypress select syntax, the syntax is
cy.get('mdc-select-item').select('ITEM1')
You may need the {force: true} as well. See here select_spec.coffee for examples of their own tests, e.g
it "can forcibly click even when element is invisible", (done) ->
select = cy.$$("select:first").hide()
select.click -> done()
cy.get("select:first").select("de_dust2", {force: true})