Skip to content

Instantly share code, notes, and snippets.

@sunjeet-khokhar sunjeet-khokhar/cypress.js Secret
Created Jul 26, 2018

Embed
What would you like to do?
cy.get("#header > div > div > div:nth-child(2) > div > div.headButtons > div.header_button_float.logMenu > div > a.underLine")
// assert that the element's text matches a reg ex
.should(($txt) => {
const text = $txt.text()
expect(text).to.match(/Login/)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.