Skip to content

Instantly share code, notes, and snippets.

@SeriousM
Created June 10, 2013 07:28
Show Gist options
  • Save SeriousM/5747073 to your computer and use it in GitHub Desktop.
Save SeriousM/5747073 to your computer and use it in GitHub Desktop.
//==============================================================================
// 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);});
//==============================================================================
// 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