Skip to main content

All Questions

Tagged with
0 votes
0 answers
27 views

Problem accessing web elements using Cypress [closed]

I use Cypress and typescript. I ran into a problem. The page has a form with a button and input fields. Expected result: When you click the button, the input fields become available for editing. ...
Norlerion's user avatar
1 vote
0 answers
40 views

cypress:xvfb malloc(): invalid next size (unsorted)

I am trying to run cypress tests on Jenkins (using chrome browser and in headless mode). Also, there is a requirement that we need to publish the video recording of each run to the cypress dashboard. ...
Soumik Mukherjee's user avatar
0 votes
1 answer
316 views

Cypress error in version 13.6.4 | cy.task() must only be invoked from the spec file or support file [closed]

I am using below version for cypress automation Cypress package version: 13.6.4 Cypress binary version: 13.6.4 Electron version: 25.8.4 Bundled Node version: 18.15.0 I am reading data from Xlsx file ...
avin singhal's user avatar
0 votes
1 answer
255 views

Cypress test with cypress-image-diff-js is failing in github actions

I am using cypress-image-diff-js plugin to run visual tests on some of the test within the suite. It runs perfectly fine in local machine (Which is a macbook pro) and fails on Github Actions that uses ...
Noor Yeaser Khan's user avatar
0 votes
1 answer
302 views

Cypress- Not able to handle Basic Login Authentication Pop Up in Cypress [closed]

In cypress we handle the login pop-up authentication for a application by providing username and password in url: cy.visit('https://username:[email protected]') or by providing auth header: cy....
ravinder's user avatar
2 votes
1 answer
411 views

Scanning QR codes with Cypress: guidance needed

"I am running some tests in Cypress where, in one of the steps, I have to go through the sign-up process, and then it asks me to scan a QR code. For that, I execute the following lines of code to ...
Pedro's user avatar
  • 23
0 votes
0 answers
25 views

Cannot perform right flow for element found or not found in Cypress

I'm encountering an issue with a Cypress custom command. The command is designed to check for the visibility of certain elements based on the result of another element. Here's the relevant code ...
automation-ninja's user avatar
0 votes
2 answers
210 views

Return value from cypress custom command and reuse in another function in test.cy.js file

I have created a custom command cy.createUser("userCreate") in commands.js that creates a userID variable. Cypress.Commands.add("createUser", (payload) => { cy....
ritika kapoor's user avatar
-1 votes
3 answers
297 views

Not able to override default timeout while using explicit wait mechanism in cypress

I am using cypress-wait-until plugin to apply explicit wait in our framework. When I use it and maximum time given is say 30000 milliseconds, so ideally it should wait maximum 300000 ms (30 seconds) ...
Deepak's user avatar
  • 100
0 votes
1 answer
555 views

Cypress: How to handle window popup authentication while clicking on link which open another subdomain link?

In Cypress we can handle window popup authentication while visiting a url like this Step:1 cy.visit(https://username:[email protected]) This is working fine. But my scenario is after performing ...
Muneeb's user avatar
  • 113
1 vote
3 answers
832 views

Cypress button click too quick to assert my test

I want to assert that when I click my button the button becomes temporarily disabled as the API call behind is made before returning being enabled again. My problem is that the response the call makes ...
user2400852's user avatar
-1 votes
2 answers
278 views

calling variables from different commands in cypress page object modal tests

I am using Cypress with page object model in my project. I have 2 commands in homepage.js : One to get custId from header section & the other to get custId on footer of the page. Now I need to ...
Rahul's user avatar
  • 35
0 votes
2 answers
190 views

How to increment and return contents of a JSON file for field input using Cypress custom commands

I could use some help with explaining to me how custom commands in cypress work. I am currently writing a function that reads a json file and increments the contents by 1 and want to return it to the ...
Cameron's user avatar
2 votes
2 answers
437 views

How can I use contains to match exact string?

I'm trying to match exact string using the below code but it seems to be returning all the elements which have same substring. cy.contains('span', 'Apple'); I tried using regex as well but that doesn'...
474gaurav's user avatar
0 votes
1 answer
78 views

How to add a element into array without overwriting the previous one

In my script I want to save the form submit url into json file and this is happening multiple times so I want to save every form submit url into json file automatically. I have tried this with one ...
abhijit arnikar's user avatar

15 30 50 per page
1
2 3 4 5
11