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 require = patchRequire(require), | |
config = require('../config.js'), | |
utils = require('../utils/utils'), | |
x = require('casper').selectXPath; | |
function getCookie(name) { | |
function escape(s) { return s.replace(/([.*+?\^${}()|\[\]\/\\])/g, '\\$1'); }; | |
var match = document.cookie.match(RegExp('(?:^|;\\s*)' + escape(name) + '=([^;]*)')); | |
return match ? match[1] : null; | |
} |
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 x = require('casper').selectXPath; | |
function randomEmail () { | |
var rand = "abcdefghiklmnopqrstuvwxyz1234567890"; | |
return ([1,2,3,4,5,6,7,8]).map(function(a) { | |
return rand.charAt(Math.floor(Math.random() * rand.length)); }).join('') + '@yahoo.com'; | |
} | |
casper.start('http://pv.webbyawards.com/users/sign_up', function () { | |
this.test.info('load webby signup'); |
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
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'); | |
}); |
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
body { | |
background: #63818a; | |
background: -moz-linear-gradient(top, #63818a 0%, #73939b 100%); | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #63818a), color-stop(100%, #73939b)); | |
background: -webkit-linear-gradient(top, #63818a 0%, #73939b 100%); | |
background: -o-linear-gradient(top, #63818a 0%, #73939b 100%); | |
background: -ms-linear-gradient(top, #63818a 0%, #73939b 100%); | |
background: linear-gradient(top, #63818a 0%, #73939b 100%); } | |
h1, h2, h3, h4, h5, h6 { |