GeckoDriver/Marionette Screenshot Not Taking Fullpage Even With Full=true
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
People
(Reporter: matt, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Steps to reproduce:
If you run the WebDriver:TakeScreenshot command with default parameters other than full=true on this page: https://www.blueorigin.com/latest/gallery
You will get a screenshot that is only the height of the viewport. The width is the width of the viewport like expected, but the height will be just the viewport and not the full page height.
Hope this helps, happy to provide more info if needed.
Actual results:
The geckodriver output probably won't be helpful here, so I'm just going to describe this issue. Though here is the request that was made.
1574450485733 webdriver::server DEBUG -> GET /session/623573bc-cfe8-453d-96fc-134fa8351d0d/moz/screenshot/full
Expected results:
The screenshot height should have been larger than the viewport.
Sorry I realized I could given better reproduce steps.
Geckodriver version: v0.26.0
Firefox version: 70.0.1 (64-bit)
Platform: Windows 10
- Navigate to: https://www.blueorigin.com/latest/gallery
- Send screenshot full command
- Observe returned png height is that of the viewport and the image is cutoff.
Comment 2•5 years ago
|
||
For full screenshots we take the bounding client rect of the document element which is for this website:
{"x":0,"y":0,"width":1265,"height":988,"top":0,"right":1265,"bottom":988,"left":0}
It would work when we would use the body.height
and body.width
here:
https://searchfox.org/mozilla-central/rev/a78233c11a6baf2c308fbed17eb16c6e57b6a2ac/testing/marionette/listener.js#1666-1667
Note that the specified page is huge and as such seem to cause a crash in GFX as reported on bug 1598731. We have to get this fixed first.
Comment 3•5 years ago
|
||
Actually this is a dupe of bug 1571424.
Updated•2 years ago
|
Description
•