cy.within()操作外部element
<h1>cy.within()内执行外部的element</h1>
<pre><code class="language-javascript">cy.get('div.myform').within(() => {
cy.contains('text within'); // inner scope
cy.document().its('body').find('div.without'); // outer scope
cy.contains('text within'); // inner scope
})</code></pre>