New answers tagged

1

you won't be able to execute Cypress directly from the browser using exec (that is, with only HTML and JS without a backend)... You could, however, have your page send requests to a Node backend, and have that backend run Cypress - using exec is a way to do that, but you can also use Cypress as a Node module, which should be cleaner. That said, if what you ...


2

It's mentioned in the documentation mentioned in the comment section, I recommend reading it. Speficially, you can read this part about closures. What you can do is to put the other cy.get() inside the first one: cy .get('...') .then($today => { cy .get('...') .then($tomorrow => { // you have access to both $today and $...


Top 50 recent answers are included