Skip to content

Instantly share code, notes, and snippets.

@shuynh
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuynh/8721118 to your computer and use it in GitHub Desktop.
Save shuynh/8721118 to your computer and use it in GitHub Desktop.
casper.waitForSelector("#submit_button", function () {
this.click("#submit_button");
this.test.info(':::uploading:::');
});
casper.waitForSelector(".btn_return", function () {
this.click(".btn_return");
this.echo('clicking through to video');
});
casper.then(function() {
var url = this.getCurrentUrl();
this.echo('clip page is ' + url);
this.click(".logout");
});
casper.thenOpen(url, function() {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment