Skip to content

Instantly share code, notes, and snippets.

@richardsweeney
Last active April 29, 2018 19:06
Show Gist options
  • Save richardsweeney/23f84005b2191995276f666512bb901d to your computer and use it in GitHub Desktop.
Save richardsweeney/23f84005b2191995276f666512bb901d to your computer and use it in GitHub Desktop.
'Test Complete Order' (browser) {
browser
.url( 'http://lavendla.se.dev.synot.io/test/' )
.waitForElementVisible( '.cart', 5000 )
.click( '.go-to-checkout' ) // This didn't work
.execute(function() { // This DID work!
document.querySelector('.go-to-checkout').click()
})
// ...test something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment