Skip to content

Tag: cypress

Checking length of element in beforeEach on Cypress

I’m trying to setup my beforeEach to create a new email if none exist before starting my tests, but when I try to count how many emails there are in my beforeEach, it always logs as 0, even if there are more. If I log the count in my it block, it shows the correct count. Does this look correct?

Keep dynamic variables between tests in Cypress

I am trying to do a Cypress test where I want to set in an input a random number and after that check that random number is set ok in another page. I’m creating the random number with this function: And setting the variables inside the describe like: The issue I’m currently having is that the vari…

get value from command log in cypress

I m trying to get value from command log in cypress . I tried to get by css selector but I could not get the value. I tried custom commands but I couldnt get it . On the webpage that I do automation test, there s a download button. when I click the button I got the exe file .

Cypress select does not have value

I´m writing a Cypress test in which I want to confirm that a certain value is not shown. I want to check that my select element does not have an option with a certain value. An example: So now I want to check that there isn´t an option with value “C” Can someone help me evaluate this? Thanks. Answ…