I am learning cypress automation tool and have knowledge about basic concepts. So I tried to automate the Microsoft outlook login page as like normal login page but I am getting an error of "unhandled promise rejection".
My code looks like below,
it('Outlook', ()=> {
cy.visit('https://outlook.office.com/mail/')
cy.get('#i0116').clear().type('hello@gmail.com')
cy.get('#idSIButton9').click()
cy.get('#3i0118').clear().type('Password@123')
cy.get('#idSIButton9').click()
})
I tried adding the below code but I couldn't resolve the issue,
Cypress.on('uncaught:exception',(err,runnable,Promise)=>{
if(Promise){
return false
}
})
Error description:
