Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
63ba92bb
...
63ba92bb686682d7b6d2b17f9b72fca3f7f5f568
authored
2012-06-04 11:47:41 +0200
by
Brikou CARRE
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tweaked sample description annotation
1 parent
01c97982
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
21 deletions
samples/bbcshots.js
samples/events.js
samples/googlepagination.js
samples/googletesting.js
samples/screenshot.js
samples/statushandlers.js
samples/bbcshots.js
View file @
63ba92b
/*
Create a mosaic image from all headline photos on BBC homepage
*/
*
Create a mosaic image from all headline photos on BBC homepage
*/
var
buildPage
,
casper
,
currentLink
,
images
,
nbLinks
,
next
;
...
...
samples/events.js
View file @
63ba92b
/*
This script will add a custom HTTP status code handler, here for 404 pages.
*/
*
This script will add a custom HTTP status code handler, here for 404 pages.
*/
var
casper
,
links
;
...
...
samples/googlepagination.js
View file @
63ba92b
/*
Capture multiple pages of google search results
Usage: $ casperjs googlepagination.coffee my search terms
(all arguments will be used as the query)
*/
*
Capture multiple pages of google search results
*
*
Usage: $ casperjs googlepagination.coffee my search terms
*
*
(all arguments will be used as the query)
*/
var
casper
,
currentPage
,
processPage
;
...
...
samples/googletesting.js
View file @
63ba92b
var
casper
;
casper
=
require
(
"casper"
).
create
({
var
casper
=
require
(
"casper"
).
create
({
logLevel
:
"debug"
});
...
...
samples/screenshot.js
View file @
63ba92b
/*
This script will capture a screenshot of a twitter account page
Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]>
*/
*
This script will capture a screenshot of a twitter account page
*
Usage: $ casperjs screenshot.coffee <twitter-account> <filename.[jpg|png|pdf]>
*/
var
casper
,
filename
,
twitterAccount
;
...
...
samples/statushandlers.js
View file @
63ba92b
/*
This script will add a custom HTTP status code handler, here for 404 pages.
*/
*
This script will add a custom HTTP status code handler, here for 404 pages.
*/
var
casper
;
casper
=
require
(
"casper"
).
create
({
var
casper
=
require
(
"casper"
).
create
({
httpStatusHandlers
:
{
404
:
function
(
self
,
resource
)
{
this
.
echo
(
"Resource at "
+
resource
.
url
+
" not found (404)"
,
"COMMENT"
);
...
...
Please
register
or
sign in
to post a comment