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) ->
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');
......