resize the window

This commit is contained in:
John Bintz 2012-03-24 08:50:26 -04:00
parent 4723f8754d
commit b5feb9419b
1 changed files with 2 additions and 2 deletions

View File

@ -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 }