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
ca81b7dd
...
ca81b7dd3890cf6160701def5f8648381ac0f616
authored
2012-05-18 06:54:30 -0700
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #112 from brikou/bbc_fix
fixed bbcshot example
2 parents
75755c0f
c9e7eb7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
samples/bbcshots.coffee
samples/bbcshots.js
samples/bbcshots.coffee
View file @
ca81b7d
...
...
@@ -12,12 +12,12 @@ casper.hide = (selector) ->
casper
.
start
'http://www.bbc.co.uk/'
,
->
nbLinks
=
@
evaluate
->
return
__utils__
.
findAll
(
'#carousel_items_items li'
).
length
return
__utils__
.
findAll
(
'#
promo2_
carousel_items_items li'
).
length
@
echo
"
#{
nbLinks
}
items founds"
# hide navigation arrows
@
hide
'.nav_left'
@
hide
'.nav_right'
@
mouse
.
move
'#promo_carousel'
@
mouse
.
move
'#promo
2
_carousel'
@
waitUntilVisible
'.autoplay.nav_pause'
,
->
@
echo
'Moving over pause button'
@
mouse
.
move
'.autoplay.nav_pause'
...
...
samples/bbcshots.js
View file @
ca81b7d
...
...
@@ -16,13 +16,13 @@ casper.hide = function(selector) {
casper
.
start
(
'http://www.bbc.co.uk/'
,
function
()
{
nbLinks
=
this
.
evaluate
(
function
()
{
return
__utils__
.
findAll
(
'#carousel_items_items li'
).
length
;
return
__utils__
.
findAll
(
'#
promo2_
carousel_items_items li'
).
length
;
});
this
.
echo
(
nbLinks
+
' items founds'
);
// hide navigation arrows
this
.
hide
(
'.nav_left'
);
this
.
hide
(
'.nav_right'
);
this
.
mouse
.
move
(
'#promo_carousel'
);
this
.
mouse
.
move
(
'#promo
2
_carousel'
);
this
.
waitUntilVisible
(
'.autoplay.nav_pause'
,
function
()
{
this
.
echo
(
'Moving over pause button'
);
this
.
mouse
.
move
(
'.autoplay.nav_pause'
);
...
...
Please
register
or
sign in
to post a comment