Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cy url contains

// clicking the anchor causes the browser to follow the link
cy.get('#user-edit a').click()
cy.url().should('include', '/users/1/edit') // => true
cy.url().should('eq', 'http://localhost:8000/users/1/edit') // => true
Source by docs.cypress.io #
 
PREVIOUS NEXT
Tagged: #cy #url
ADD COMMENT
Topic
Name
9+4 =