Skip to content

Commit e36b3dd

Browse files
committed
fix saveElementScreenshot with latest selenium + geckodriver
1 parent 079b4fc commit e36b3dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/runTests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = {
106106
.saveElementScreenshot(".jumbotron", imageFileName)
107107
.perform(function(client, done) {
108108
easyimg.info(imageFileName).then(function(imageInfo) {
109-
client.assert.equal(imageInfo.height == 235, true, "saveElementScreenshot works");
109+
client.assert.equal(imageInfo.height, 234, "saveElementScreenshot works (height found ()"+imageInfo.height+") should be 234)");
110110
fs.unlinkSync(imageFileName);
111111
done();
112112
});
@@ -241,4 +241,4 @@ module.exports = {
241241
.assert.containsText("#div", "something else")
242242
.end();
243243
},
244-
};
244+
};

0 commit comments

Comments
 (0)