Thank you very much for your quick and helpful reply!
Unfortunately I am still unable to get a proper screenshot of the entire page
in IE with the trunk version of selenium2 (r12177) as well. With the new DLLs
built from SVN InternetExplorerDriver.getScreenshot() now returns an image of
the correct dimensions of the entire page, but with everything black below the
window viewport region and with scrollbars in this region (please see
attachment). I can watch the IE window resizing as seems to be the approach
taken in the implementation of r12009.
Am I missing something or is there anything I can do to help getting this
fixed?
Thanks again,
David
Please find attached my very basic C#-Program to save a screenshot of the
German version of Google News. I get the behavior described below with IE9
under Windows 2008 Server and IE8 under XP as well.
David
From the archive you may be able to run setup.exe to deploy and run the
screenshot test. It contains also all Selenium 2 DLLs from the trunk which I
use.
Thanks for your help,
David
* [Tuesday 17.05.2011 08:06] David Baehrens:
Jim Evans <james.h....@gmail.com> :
>Using your source code, I'm able to get a full-page screen shot
>without incident or further modification. I've not tried with your
>compiled binaries.
Thanks a lot for this! Could you please tell me which versions of InternetExplorer, Windows, and .NET Framework you have used? For Selenium2-dotnet I suppose the latest trunk version.
Thanks again for your help,
David
For me finally it worked with the 64bit Version of Windows Server 2008 and a
SVN trunk checkout. Haven't really tested rc2 yet...
Best,
David
Thanks again! I sucessfully made a complete screenshot under Win2008 Server
64bit using the current selenium-dotnet-2.0-rc2. So the issue with the black
area seems to be related to 32bit vs. 64bit, since with Win XP the screenshot
still has the black region below the viewport with the RC2 as well.
But there is another issue with RC2 on Windows 2008 Server 64bit: When I
resize the window to a given width before the screenshot is taken, sometimes
parts of the page are simply cut off. The attached screenshot 1024.png of
http://news.google.de shows a vertical scrollbar and misses the copyright
notice and links in the page footer. Those are correctly present in screenshot
800.png.
Both images were taken with the attached ScreenshotIE.cs with arguments
ScreenshotIE.exe 1024 http://news.google.de 1024.png and
ScreenshotIE.exe 800 http://news.google.de 800.png respectively.
The difference is the first resizes the browser window through JavaScript to a
width of 1024 pixel and the second to a width of 800 pixel.
Any ideas how to solve this?