title: How can I get the HTML of a hidden element in Cypress?
body: <p>I have a hidden div on a page I'd like to get a reference to in Cypress so I can get its text and assert on it. As far as I can tell from the API docs I don't see any way to do this. You can use the <code>{ force : true }</code> option to force Cypress to click on something it doesn't think it can, but there's no option for that to force Cypress to look for elements that are not visible to the user, but are in the dom.</p>
  
  <p>The element is hidden on the dom by a <code>display: none</code> style. This is just one of the many reasons Cypress will consider an element "hidden" and not find it. <a href="https://docs.cypress.io/guides/core-concepts/interacting-with-elements.html#Visibility" rel="nofollow noreferrer">https://docs.cypress.io/guides/core-concepts/interacting-with-elements.html#Visibility</a></p>
  
  <p>I have read through the API docs and mostly tried cypress.get()</p>