Last active
August 29, 2015 13:57
-
-
Save pibby/9421078 to your computer and use it in GitHub Desktop.
Revisions
-
pibby revised this gist
Mar 7, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ #!/usr/bin/ruby # Katie Harron - @pibby require 'watir-webdriver' mq = [320,480,640,768,1024,1280,1440] -
pibby created this gist
Mar 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/usr/bin/ruby require 'watir-webdriver' mq = [320,480,640,768,1024,1280,1440] b = Watir::Browser.new :firefox b.goto 'http://localhost:8000' mq.each do |i| width = i + 15 height = 5000 puts i b.window.resize_to(width, height) sleep 3 b.screenshot.save "screenshots/ff-#{i}.png" end b.quit