I'm going to use my psychic debugging powers to deduce that you're 
automating IE with the watir-webdriver gem. If I'm wrong, disregard the 
following explanation.

Screenshots in WebDriver are, by definition, of the full page. However, in 
order to take a screenshot of the full page without scrolling (which would 
screw up absolutely positioned elements), you have to be able to render the 
full page in IE. The only way to get the full page to render is to resize 
the IE window so that the full page is visible without scrolling. So, the 
IE driver does the resize automatically for the screenshot API call, then 
restores the window to the state it was in before the call.

If you're attempting to use IE10, on Windows 8, screenshots are one of the 
few things that don't work entirely properly. It's entirely possible that 
Microsoft has closed the loophole the IE driver uses to create full-page 
screenshots in Windows 8.

--Jim

On Wednesday, January 16, 2013 9:42:45 AM UTC-5, Evgeny Shavkunov wrote:
>
> Hi,
>
> I was trying to make a screenshot from the page using 
> "browser.screenshot.save" and I found that only small part of the page 
> (even less then visible part in the window) is saved in file. Later I 
> discovered that before screenshot is taken browser is automatically 
> minimized and then maximized back after.
>
> What can be the reason for that? How can I get a screenshot with a whole 
> page?
>
> Thank you!
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to