From b5feb9419b690a33440b6bbf96e0f978334bfbd1 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sat, 24 Mar 2012 08:50:26 -0400 Subject: [PATCH] resize the window --- bin/attentive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/attentive b/bin/attentive index cade9d5..bb29a0b 100755 --- a/bin/attentive +++ b/bin/attentive @@ -118,7 +118,7 @@ class Attentive::CLI < Thor def export puts "Exporting to static HTML..." - static + #static require 'selenium-webdriver' @@ -126,7 +126,7 @@ class Attentive::CLI < Thor browser.navigate.to "file://#{Dir.pwd}/_site/index.html" - browser.execute_script('window.resizeTo(1024, 768)') + browser.manage.window.resize_to 1024, 768 get_current_slide = lambda { ((browser.execute_script('return document.location.href') || '')[%r{#(\d+)$}, 1] || -1).to_i }