Description
Feature and motivation
In the Ruby Selenium Driver, it is possible to provide the full_page
-argument to save_screenshot
(documented here).
That option only work when using Selenium with Firefox. Not Chrome or Edge.
4 years ago, there was already a discussion to add this feature: #8705
Unfortunately, that got closed as a duplicate of BiDi-work. That work referenced screenshots, but did not actually include that feature. And it is merged for some time now.
From other issues, I'm not quite sure whether that limitation is only in the ruby-bindings, or shared with other languages.
Or maybe I'm holding it wrong? If so, I'd be greatful if you could add the correct way to take screenshots to the method documentation 🙏
Usage example
I'm currently adding visual regression tests, creating screenshots of our website or something like Storybook. So I have some pages that are very long, and others that are less than a normal screen height. Taking long pictures with a lot of white-space of everything seems wasteful.
For now, we'll use Firefox. But since this was already closed as done, but actually isn't, I thought I'd re-raise this 😇