Hi
Not sure if this is something to get a screen shot.. but I tried adding a
screen shot folder to the UI test folder where I put in all the tests and
then adding this line to the places where I would like to get the screen
shotsolves my problem
broswer.driver.save_screenshot("uitest/screenshot/<File
Name>_#{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}.png")
On Thu, May 9, 2013 at 4:28 PM, LuisE <[email protected]> wrote:
> I have the same proble, did anyone fix it?
> Best Regards
> El jueves, 17 de enero de 2013 19:52:33 UTC+1, johnssn escribió:
>
>> Awesome! Thanks...
>>
>> ------------------------------
>> *From:* Dan <[email protected]>
>> *To:* [email protected]
>> *Cc:* John Fitisoff <[email protected]>
>> *Sent:* Thursday, January 17, 2013 10:47 AM
>> *Subject:* Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser
>> is minimised before screeshot is taken and only part of the page is saved
>>
>> It works on all.
>>
>> On Thursday, January 17, 2013 1:33:28 PM UTC-5, johnssn wrote:
>>
>> 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<http://groups.google.com/group/watir-general>
>> watir-genera...@ googlegroups.com
>>
>>
>> --
>> 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<http://groups.google.com/group/watir-general>
>> watir-genera...@**googlegroups.com
>>
>>
>> --
> --
> 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]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
--
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]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.