Questions tagged [cypress]

Questions about using Cypress.io, an open source tool for testing anything that runs in a browser.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
40 views

Accessing elements within a Frame in Cypress

I am trying to interact with elements within a frame. <frame name="content" scrolling="AUTO" src="empty.jsp"> #document <html lang="en">...
1
vote
1answer
26 views

How do I automate the setting of Cypress environment variables on a windows machine via a text file?

On Unix and Mac machines, environmental variables can be read from .env files which have 'export' commands in them. For example: export USER_ENV=test export CLIENT=company In windows, there's no ...
0
votes
2answers
145 views

visiting a dynamic link that opened in new tab in cypress

Scenario: While clicking a link/button in the application, a new tab is opened (with a dynamic url) Is there a way in cypress to test somethings in the newly opened tab? I cannot use cy.visit() as ...
0
votes
0answers
22 views

Is there any way I can have Cypress test steps printed out in the command prompt?

Cypress shows a log of all test cases / spec files executed while execution goes on in CMD. I want to know if there is a way that Cypress can show the test steps execution also in the command prompt. ...
0
votes
0answers
183 views

Cypress catch and validate a redirect

We're creating E2E tests in Cypress. One of our tests shows a list of banks to which you can be redirected to complete a payment. After clicking a specific bank with the following code: cy.get('....
0
votes
4answers
89 views

How can I measure the coverage of my E2E tests?

I'm looking for a way to measure the coverage of my end-to-end tests. I have some existing E2E tests already and I'm adding more test scenarios to it. But I would like to have a way to quantify the ...
-1
votes
1answer
209 views

how to get list of files in a directory recursively in Cypress?

I wrote this code and it works fine, that is written in TypeScript. When I use the same code in the test file in Cypress I get error TypeError: fs.readdir is not a function import * as fs from 'fs' ...
-2
votes
1answer
86 views

What is the difference between the Selenium tool and the Cypress tool?

What is the difference between the Selenium tool and Cypress tool? How they both are works differently from each other?