'Cypress js - When I click on the Sign In anchor tag, blank page is displayed. How can I fix this?
I click on 'Sign in' but I get a blank page. I can see the 'Sign in' anchor tag is pointing to a Javascript code. I tried adding "modifyObstructiveCode": false to cypress.json still its not working.
Cypress Code:
describe('My First Test', () => {
before(() => {
cy.visit('/')
})
it('should login to gumtree', () => {
cy.get('div.nav-my-gumtree').should('be.visible')
.click()
cy.get('div.nudge-login__action-buttons a')
.first()
.click({force: true})
cy.get('h1').should('have.text', 'Sign in')
})
})
cypress.json
{
"baseUrl": "https://gumtree.com.au/",
"modifyObstructiveCode": false
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
