Commit c9e7eb7c c9e7eb7c4456c17acfc21a9a483f94c9c9b645e7 by Brikou CARRE

fixed bbcshot example

1 parent 75755c0f
......@@ -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 '#promo2_carousel'
@waitUntilVisible '.autoplay.nav_pause', ->
@echo 'Moving over pause button'
@mouse.move '.autoplay.nav_pause'
......
......@@ -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('#promo2_carousel');
this.waitUntilVisible('.autoplay.nav_pause', function() {
this.echo('Moving over pause button');
this.mouse.move('.autoplay.nav_pause');
......