[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-24 Thread NaviHan
Hi Sam Issue resolved. It was basically the issue with PATH variable for Jenkins job. "convert.exe" is also the name of a windows executable which converts FAT filesystem to NTFS. When you do not specify the full path of an executable the system first searches the current working directory

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-24 Thread NaviHan
A more readable format of the error `convert -size 1920x1957 xc:white ./screenshots/Button Function Checkout with an email address without a website account without PERKS membership hit Continue As Guest _failure_2018-09-24_1712.png` failed with error: Invalid Parameter - 1920x1957

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-24 Thread NaviHan
Hi Sam Im getting this weird error when running the script on Jenkins box. Its a machine of AWS. Any clue? [ 31m features/Loyalty_Memberships-AU.feature:189:in `And the perks overlay popup closes' [0m 2018-09-24 16:11:50 WARN Watir Screenshot Stitch [DEPRECATION] Passing the browser is

Re: [wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-21 Thread Sam Nissen
Hi Navi — the version there refers to Watir Screenshot Stitch. When we publish version 0.7.0, we will no longer allow you to pass the browser in. This was a hack that we needed, but thanks to the changes Titus has made to Watir, the Screenshot class now knows the browser it was created for.

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-21 Thread NaviHan
Hi Sam Just found this warning 2018-09-21 20:32:17 WARN Watir Screenshot Stitch [DEPRECATION] Passing the browser is deprecated and will no longer work in version 0.7.0 /lib/watir- screenshot-stitch.rb:31 In fact I did try using version 0.7.0 of ImageMagick, but found this issue mentioned in

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-21 Thread NaviHan
Hi Titus and Sam This worked like a charm. Such a very usefull gem. Thanks a ton. I just prepared a wiki for my project. Pasting here in case if this helps. *For capturing full screen images* Use gem https://github.com/samnissen/watir-screenshot-stitch Include in Gemfile gem

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-20 Thread Titus Fortner
Hey Sam. Is now a good time to release the update and publish a blog post about it? :) On Thursday, September 20, 2018 at 8:20:16 AM UTC-7, Sam Nissen wrote: > > Hi Navi -- I created that gem, help maintain it, and would be happy to > help you if you run across any issues. > > On Thursday,

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-20 Thread NaviHan
Hi Sam Thanks for reaching out. I will try that out tomorrow from office. Will let you know the outcome :-) On Thursday, 20 September 2018 21:14:17 UTC+10, NaviHan wrote: > > Hi > > I have put this code in the hooks which takes scresnshot when a test > fails. The issue is that Im not getting

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-20 Thread Sam Nissen
Hi Navi -- I created that gem, help maintain it, and would be happy to help you if you run across any issues. On Thursday, September 20, 2018 at 2:33:00 PM UTC+1, NaviHan wrote: > > Thanks Justin, Let me give it a go.. > > On Thursday, 20 September 2018 21:14:17 UTC+10, NaviHan wrote: >> >> Hi

[wtr-general] Re: How to take full screen, screenshots after test fails

2018-09-20 Thread Justin Ko
Hi Navi, Selenium only screenshots the content in the viewport. If you want the whole browser, you would need to take multiple screenshots. There was a gem recently released to do this - https://github.com/samnissen/watir-screenshot-stitch Though I haven't tried it myself. Justin On