The question is as simple as that. In Cypress, how can I access a new window that opens up when running the test. Steps to recreate : Run the test. After some action, new window pops up (the url is dynamic in nature). Fill in the fields in...
Context: I have an element with innerText in Page1 and another element with innerText on Page 2. And I need to compare these two values in Page 3. So I need to find a way to save these values in a variable globally so that they can be used later. Th...
I have a test case in which i have a link which opens in a new tab, and since cypress doesn't support multi tab, i wanna get href attribute of that link and then open it in the same tab, i`m trying to do it this way, but for some reason it doesn&...
I have a single endpoint in the application. We hit the same api for each request with different action in the params. URL: /application/api Sample Request Payload 1: { "action": "CARD_TRANSACTION_HISTORY", "data": {...
I need Cypress to wait for any xhr requests to complete by default before performing any operations. Is there any way to make this as a default or any other alternatives because the application I am testing is slow and makes a lot of api calls? Edit...
How can I write an e2e test of flow that requires interaction with the file Input DOM element? If it's a text input I can interact with it (check value, set value) etc as its a DOM component. But If I have a File Input element, I am guessing tha...
My 'example-spec.js' tests under the integration folder contain 15 tests, each time the Cypress.io will run all the 15 tests written in the 'example-spec.js'. I would like to choose and specify 'which' test needs to run, maybe...
I am in a situation where I need to use for loop and If else block in cypress Scenario: Once I login to an application, I need to read an element's text which is rounded in the below screenshot. This element will appear within 20-90 seconds af...
I am setting up new cypress tests to test some functionalities in Dynamics 365 application. But, I'm left with a browser window with the url https://login.microsoftonline.com/__/ and the text Whoops, there is no test to run. describe('Initia...
I am trying to cy.visit() my single page application that requires my certificate loaded in the browser to run correctly. When running a test, it fails with a 403 forbidden error. There is a terrible work-around where I open a new tab in the cypress/...
©2020 All rights reserved.