Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created June 8, 2015 07:55
Show Gist options
  • Save amitaibu/7ba91c4005b9c4b1b590 to your computer and use it in GitHub Desktop.
Save amitaibu/7ba91c4005b9c4b1b590 to your computer and use it in GitHub Desktop.
{
"dependencies": {
"webdrivercss": "^1.1.3",
"webdriverio": "^2.4.5"
}
}
var webdriverio = require('webdriverio'),
assert = require('assert');
describe('Missing elements tests', function(){
this.timeout(99999999);
var client = {};
before(function(done){
client = webdriverio.remote({ desiredCapabilities: {browserName: 'phantomjs'} });
client.init(done);
});
after(function(done) {
client.end(done);
});
it('Should show all the elements on the page',function(done) {
client
.url('http://dev-moment.pantheon.io')
.windowHandleSize({width: 1024, height: 768})
.pause(5000)
.saveScreenshot('./snapshot.png')
.call(done);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment