Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Screenshots are different taken between Chrome and Firefox #55

Closed
wlsf82 opened this issue Sep 11, 2015 · 3 comments
Closed

Screenshots are different taken between Chrome and Firefox #55

wlsf82 opened this issue Sep 11, 2015 · 3 comments

Comments

@wlsf82
Copy link

wlsf82 commented Sep 11, 2015

When I integrate my Protractor tests with VistualReview, if my capability is Firefox, the taken screenshot is a full screenshot of the page, even with the scroll, but with Chrome only the visible area is taken.
Is this something specific from Protractor and Visual Review integration?

@skwakman
Copy link
Contributor

This is, sadly, a long-running issue in the ChromeDriver component used when running Webdriver tests on webkit-enabled browsers like Chrome, Safari and Opera. The relevant bug report and the long-running discussion around it is here: https://code.google.com/p/chromedriver/issues/detail?id=294 .

The quickest workaround is to scale chrome's browser window to the area you wish to capture.

Alternatively, a solution we're currently testing is having VisualReview-protractor capture various screenshots as it's scrolling through the page and stitch them together. However, this introduces all kinds of nasty side-effects with elements that have special behavior in regards to scrolling (position:fixed or javascript-enabled onScroll-triggered logic). We plan to release this workaround as an experimental option in VisualReview-protractor somewhere in the upcoming weeks.

@skwakman
Copy link
Contributor

For reference, here's the actual issue of VisualReview-protractor : xebia/VisualReview-protractor#2

It's progress has been stalled for a while due to different priorities, however I expect to finish it somewhere in the next few weeks.

@skwakman
Copy link
Contributor

closing issue, will be tracked in xebia/VisualReview-protractor#2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants