ruby - Above the fold screenshots using watir-webdriver -


i'm using watir-webdriver screenshots, , giving me full site screenshots. how can see above fold?

current code:

driver = webdriver::useragent.driver(:browser => :firefox, :agent => :iphone, :orientation => ;landscape) browser = watir::browser.new driver browser.goto "http://forefathersgroup.com" browser.driver.save_screenshot "forefathers.png 

there no way visible part of page using watir-webdriver, because selenium, used in library not provide such functionality.

so 1 of possible solutions crop screenshot after creation


Comments