Created
June 10, 2013 07:28
-
-
Save SeriousM/5747073 to your computer and use it in GitHub Desktop.
This file contains 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
//============================================================================== | |
// Casper generated Mon Jun 10 2013 09:27:47 GMT+0200 (W. Europe Daylight Time) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
var casper = require('casper').create(); | |
casper.options.viewportSize = {width: 1920, height: 1137}; | |
casper.start('http://wetter.orf.at/oes/'); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector("undefined", | |
function success() { | |
this.test.assertExists("undefined"); | |
this.click("undefined"); | |
}, | |
function fail() { | |
this.test.assertExists("undefined"); | |
}); | |
casper.waitForSelector(x("//*[contains(text(), 'Heute, Montag')]"), | |
function success() { | |
this.test.assertExists(x("//*[contains(text(), 'Heute, Montag')]")); | |
}, | |
function fail() { | |
this.test.assertExists(x("//*[contains(text(), 'Heute, Montag')]")); | |
}); | |
casper.run(function() {this.test.renderResults(true);}); |
This file contains 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
//============================================================================== | |
// Casper generated Mon Jun 10 2013 09:27:54 GMT+0200 (W. Europe Daylight Time) | |
//============================================================================== | |
var x = require('casper').selectXPath; | |
var casper = require('casper').create(); | |
casper.options.viewportSize = {width: 1920, height: 1137}; | |
casper.start('http://wetter.orf.at/oes/'); | |
casper.then(function() { | |
this.mouse.click(1014, 212); | |
}); | |
casper.then(function() { | |
this.mouse.click(716, 225); | |
}); | |
casper.then(function() { | |
this.mouse.click(191, 574); | |
}); | |
casper.then(function() { | |
this.mouse.click(191, 574); | |
}); | |
casper.then(function() { | |
this.mouse.click(191, 574); | |
}); | |
casper.then(function() { | |
this.mouse.click(206, 574); | |
}); | |
casper.then(function() { | |
this.mouse.click(316, 573); | |
}); | |
casper.waitForSelector(x("//*[contains(text(), 'Heute, Montag')]"), | |
function success() { | |
this.test.assertExists(x("//*[contains(text(), 'Heute, Montag')]")); | |
}, | |
function fail() { | |
this.test.assertExists(x("//*[contains(text(), 'Heute, Montag')]")); | |
}); | |
casper.run(function() {this.test.renderResults(true);}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment