Ok, I managed to get better results and I have more details on the issue I'm having.
I noticed that when screenshot method does minimize-maximize operation, minimized window goes partly off the screen. So I used browser.window.move_to 0,0 and it worked much better: page on screenshot now is much less cropped but still cropped (especially at the bottom). So I started to play with browser.window.resize_to method and found that the best results I get when I set browser size slightly bigger then screen resolution (e.g. with 1366x768 resolution the best screenshot I managed to make was with browser size 1374x816). Better but not perfect: e.g. I can see scrollbars on the sides of screenshot (application I'm testing is scaled depending on window size and when this size is changed from higher to lower there is a moment when scrollbars are shown). But as I understand screenshot method should automatically scroll the page anyway, right? Any idea where can be a problem? Is there a way how to make screenshots without resizing (even if page is not fully rendered still possibly results can be better)? Or may be there is alternative method of making a screenshot on IE? -- 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]
