One question about the screenshot capability: Is it specific to a certain OS or will it work on Windows, OSX, Linux?
________________________________ From: Evgeny Shavkunov <[email protected]> To: [email protected] Sent: Thursday, January 17, 2013 2:07 AM Subject: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved 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] -- 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]
