我正在使用 watir-webdriver 进行截图,现在它只给我完整的网站截图。我如何才能看到首屏上方的内容?
当前代码:
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