Skip to content

Instantly share code, notes, and snippets.

@laughinghan
Created February 13, 2017 23:14
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 laughinghan/da5c1b494f66027950037c3bae817436 to your computer and use it in GitHub Desktop.
Save laughinghan/da5c1b494f66027950037c3bae817436 to your computer and use it in GitHub Desktop.
npm install webdriverio wdio-screenshot wdio-mocha-framework
./node_modules/.bin/wdio wdio.config.js
suite('suite', function() {
test('test', function() {
browser.url('https://many-worlds.gomix.me/mathquill/mathquill/branch/ci.cleanup/test/visual.html')
.saveDocumentScreenshot('edge_screenshot.png');
});
});
exports.config = {
user: 'mathquill',
key: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
specs: [ 'test.js' ],
capabilities: [{ browserName: 'MicrosoftEdge', platform: 'Windows 10' }],
plugins: { 'wdio-screenshot': {} },
framework: 'mocha',
mochaOpts: { ui: 'tdd' }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment