Cypress Examples
-
Submit the form without passing click => newTab.js
NOTE - Cypress does not support tab. So, we need to follow 2 steps Step 1. Run npm install -D cypress-plugin-tab Step 2. Add require('cypress-plugin-tab') at the top of cypress/support/index.js:
-
Find Text using variables and alias => findText.cy.js
-
Passing Enter as input value => typeEnter.cy.js
-
Test Responsiveness, using different viewports => webResponsive.cy.js
-
Change Different Browsers in test => defineBrowser.cy.js
-
Open New Tab in cypress => newTab.js
-
Find the Length of elements on Page => findLength.cy.js
-
alert Test => alertTest.cy.js
-
Opening google in different ways => google.cy.js
-
Check if an element exist on the page => assertion2.cy.js
-
Upload File using .selectFile() => fileUpload.cy.js
-
Drag and drop =>dragAndDrop.cy.js
-
Move Hover using 2 ways: Cypress Command and Third-party plugin => mouseHover.js
-
broken Links on the page => brokenLink.cy.js
-
How to find current date => currentDate.cy.js
-
How to avoid delay while entering text in Cypres => delayExample.cy.js
-
Disable test in Cypress => disableTest.cy.js
-
Select a value from dropdown => dropdown.cy.js
-
Run test based on browser => defineBrowser.cy.js
-
Pick value based on environment variable in Cypress => envVariable.cy.js
-
Fetch csv value => fetchCsv.cy.js
-
Ignore case sensitivity in Cypress => ignoreCaseSensitivity.cy.js
-
Monkey Test in Cypress => monkeyTest.cy.js
-
Multi Origin Test in Cypress => multiOrigin.cy.js
-
Pause Execution in Cypress => pauseExecution.cy.js
-
How to refresh page in Cypress => refreshPage.cy.js
-
Perform Scroll in Cypress => scrollInToView.cy.js
-
Skip test based on browser and operating system => skipTest_conditionalBasis.cy.js
-
How to access value from different test in Cypress => accessValueFromOtherTest.cy.js , Login.cy.js and sharedFunction.cy.js
-
Take screenshot of command or screenshot of whole page in Cypress => takeScreenshot.cy.js
-
Disable image on loading the page in Cypress => imageDisable.cy.js
-
Handle Exception in Cypress => cypressException.cy.js
-
Automate home page in Cypress => homePage.cy.js
-
Handle Pagination in Cypress => paginationTest.cy.js
-
Read data from Fixture => readFixtures.cy.js
-
Automate login using data driven approach in Cypress => dataDrivenTest.cy.js
-
Cypress test genaretad from Cypress STudio => cypress_studio.cy.js
-
How to test reponsiveness of page in Cypress / Testing on different viewports => webResponsive.cy.js
-
Test differnt HTTP Methods in Cypress.. Perform API testing => api.cy.js
-
Handle checkbox in Cypress => checkbox.cy.js
-
Blur and focus on an element in Cypress => blurAndFocus.cy.js
-
Read data from Excel in Cypress => readExcelData.cy.js => Run "npm install node-xlsx --save"
-
How to handle tool tip
-
How to handle basic auth headers