hi there,
i have a button which i want to click doing the following : cy.get("#extra-consent").click();
the problem is that the button isnt always there on the journey. so i want to do some conditional rendering and be like if (button is there) { cy.get("#extra-consent").click(); } otherwise dont click and carry on. whatever i have tried has failed. any suggestions please?