Cypress - if then functions
问题 I have question about Cypress. I have an element on page which doesn't appear allways. There is no logic when it shows and when not. Is in Cypress some IF/THEN function or something how do you check if the element is displayed (so fill it up) and when you don't see it than skip that step? My code: if (Cypress.$('[data-bind="validationElement: interestInsurable"]').length > 0) { cy.get('[for="p4-conditional-csob-interest-insurable-1"]').click() } else {cy.get('#car-info-serie')} This is how it