Skip to content

Instantly share code, notes, and snippets.

@trivial-search
Created July 26, 2018 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trivial-search/7f4affc12bc984161e826dd1c02ee435 to your computer and use it in GitHub Desktop.
Save trivial-search/7f4affc12bc984161e826dd1c02ee435 to your computer and use it in GitHub Desktop.
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