Commit ca81b7dd ca81b7dd3890cf6160701def5f8648381ac0f616 by Nicolas Perriault

Merge pull request #112 from brikou/bbc_fix

fixed bbcshot example
2 parents 75755c0f c9e7eb7c
...@@ -12,12 +12,12 @@ casper.hide = (selector) -> ...@@ -12,12 +12,12 @@ casper.hide = (selector) ->
12 12
13 casper.start 'http://www.bbc.co.uk/', -> 13 casper.start 'http://www.bbc.co.uk/', ->
14 nbLinks = @evaluate -> 14 nbLinks = @evaluate ->
15 return __utils__.findAll('#carousel_items_items li').length 15 return __utils__.findAll('#promo2_carousel_items_items li').length
16 @echo "#{nbLinks} items founds" 16 @echo "#{nbLinks} items founds"
17 # hide navigation arrows 17 # hide navigation arrows
18 @hide '.nav_left' 18 @hide '.nav_left'
19 @hide '.nav_right' 19 @hide '.nav_right'
20 @mouse.move '#promo_carousel' 20 @mouse.move '#promo2_carousel'
21 @waitUntilVisible '.autoplay.nav_pause', -> 21 @waitUntilVisible '.autoplay.nav_pause', ->
22 @echo 'Moving over pause button' 22 @echo 'Moving over pause button'
23 @mouse.move '.autoplay.nav_pause' 23 @mouse.move '.autoplay.nav_pause'
......
...@@ -16,13 +16,13 @@ casper.hide = function(selector) { ...@@ -16,13 +16,13 @@ casper.hide = function(selector) {
16 16
17 casper.start('http://www.bbc.co.uk/', function() { 17 casper.start('http://www.bbc.co.uk/', function() {
18 nbLinks = this.evaluate(function() { 18 nbLinks = this.evaluate(function() {
19 return __utils__.findAll('#carousel_items_items li').length; 19 return __utils__.findAll('#promo2_carousel_items_items li').length;
20 }); 20 });
21 this.echo(nbLinks + ' items founds'); 21 this.echo(nbLinks + ' items founds');
22 // hide navigation arrows 22 // hide navigation arrows
23 this.hide('.nav_left'); 23 this.hide('.nav_left');
24 this.hide('.nav_right'); 24 this.hide('.nav_right');
25 this.mouse.move('#promo_carousel'); 25 this.mouse.move('#promo2_carousel');
26 this.waitUntilVisible('.autoplay.nav_pause', function() { 26 this.waitUntilVisible('.autoplay.nav_pause', function() {
27 this.echo('Moving over pause button'); 27 this.echo('Moving over pause button');
28 this.mouse.move('.autoplay.nav_pause'); 28 this.mouse.move('.autoplay.nav_pause');
......