how to handle in cypress "Checking your browser before accessing app.hubspot.com"

Viewed 117

When I run the following cypress script:

describe('Handle Service Unavailable and Uncaught Exception', ()=>{
it('handle the hubspot login test', ()=>{
    cy.visit('https://app.hubspot.com/login', { failOnStatusCode: false})
    cy.wait(5000)
    cy.get('#username').should('be.visible').type('xxxx@gmail.com')
    cy.get('#password').should('be.visible').type('xxxxx@g123')
    cy.get('#loginBtn').should('be.visible').click()

})

})

https://app.hubspot.com/login URL stuck at message enter image description here

Hence not able to get the #username field and type the username details.

1 Answers

You cant directly got to login page and try below.

it('handle the hubspot login test', ()=>{
    cy.visit('https://www.hubspot.com/');
    cy.get('.homepage-nav-login').click();
})

This worked for me.

enter image description here

Related