Handle Service Unavailable and Uncaught Exception in Cypress Part 6
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=uB2EHr2C6VM
In this video, I have explained how to solve handle service unavailable error and Uncaught Exception in Cypress. • To handle Service Unavailable Error, please use: • {failOnStatusCode: false} • ex: • cy.visit('https://app.hubspot.com/login', {failOnStatusCode: false}) • To handle uncaught:exception, you need to write following script in support index.js file: • Cypress.on('uncaught:exception', (err, runnable) = { • // returning false here prevents Cypress from • // failing the test • return false • }) • ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation: • https://www.youtube.com/c/Naveen%20Au... • Follow me on my Facebook Page: • / naveenqtpexpert • Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram: • https://t.me/joinchat/COJqZUPB02r5sB7... • Paid courses (Recorded) videos: • https://naveenautomationlabs.com/reco... • For Java Selenium – http://naveenautomationlabs.com/selen... • For API (Manual + Automation) – http://naveenautomationlabs.com/manua...
#############################
![](http://youtor.org/essay_main.png)