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
c9e7eb7c
...
c9e7eb7c4456c17acfc21a9a483f94c9c9b645e7
authored
2012-05-18 15:10:31 +0200
by
Brikou CARRE
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed bbcshot example
1 parent
75755c0f
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 @
c9e7eb7
...
...
@@ -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 @
c9e7eb7
...
...
@@ -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