it has been questioned before: Conditional statement in cypress. Thus you can basically try this: cy.get('header').then(($a) => { if ...
確定! 回上一頁