Skip to content

Instantly share code, notes, and snippets.

@giltayar
Last active September 11, 2017 06:50
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 giltayar/94d796650ab58abd988614a7efd27cf3 to your computer and use it in GitHub Desktop.
Save giltayar/94d796650ab58abd988614a7efd27cf3 to your computer and use it in GitHub Desktop.
const {Eyes} = require('eyes.selenium')
let eyes
before(async () => {
eyes = new Eyes()
eyes.setApiKey(process.env.APPLITOOLS_APIKEY)
await eyes.open(driver, 'Calculator App', 'Tests', {width: 800, height: 600})
})
after(async () => await eyes.close())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment