Created
June 8, 2015 07:55
-
-
Save amitaibu/7ba91c4005b9c4b1b590 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"webdrivercss": "^1.1.3", | |
"webdriverio": "^2.4.5" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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