Skip to content

Instantly share code, notes, and snippets.

@pettomartino
Created March 9, 2018 11:58
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 pettomartino/2f787cfae6d70cbb76c2eb9f9fa21121 to your computer and use it in GitHub Desktop.
Save pettomartino/2f787cfae6d70cbb76c2eb9f9fa21121 to your computer and use it in GitHub Desktop.
browser
.setValue('input[placeholder=E-mail]', email)
.setValue('input[placeholder=Password]', password)
.useXpath()
.click("//*[text()='Login']")
.pause(200)
.expect.element("//*[text()='John Doe']").to.be.present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment