WebDriver:TakeScreenshot uses document element’s clientWidth/clientHeight instead of viewport dimensions
Categories
(Remote Protocol :: Marionette, defect, P1)
Tracking
(firefox66 fixed)
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: kristian, Assigned: kristian, Mentored)
References
(Blocks 2 open bugs, )
Details
Attachments
(2 files, 5 obsolete files)
2.93 KB,
patch
|
ato
:
review+
|
Details | Diff | Splinter Review |
2.38 KB,
patch
|
Details | Diff | Splinter Review |
Updated•8 years ago
|
Updated•8 years ago
|
Updated•8 years ago
|
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Updated•7 years ago
|
Comment 5•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 16•7 years ago
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment 19•7 years ago
|
||
Assignee | ||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
Assignee | ||
Comment 23•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 24•6 years ago
|
||
Assignee | ||
Comment 25•6 years ago
|
||
Tested with:
from selenium import webdriver
capabilities=webdriver.DesiredCapabilities.FIREFOX.copy()
capabilities['moz:firefoxOptions'] = {'args': ['--headless']}
driver = webdriver.Remote(desired_capabilities=capabilities, command_executor='http://127.0.0.1:4444')
driver.set_window_size(1920, 1080)
driver.get('http://google.com')
driver.save_screenshot('google.png')
driver.get('http://facebook.com')
driver.save_screenshot('facebook.png')
driver.quit()
$ python test.py
$ file google.png facebook.png
google.png: PNG image data, 1920 x 1006, 8-bit/color RGBA, non-interlaced
facebook.png: PNG image data, 1920 x 1006, 8-bit/color RGBA, non-interlaced
Comment 26•6 years ago
|
||
Comment 27•6 years ago
|
||
Comment 28•6 years ago
|
||
Comment on attachment 9035314 [details] [diff] [review]
patch.patch
Review of attachment 9035314 [details] [diff] [review]:
Thanks for the patch! I’ve applied it to inbound.
Comment 29•6 years ago
|
||
Backed out changeset 76be2a9fde9e (Bug 1385706) per developer's request CLOSED TREE
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/e7ed31dd6f7faa874ba0dc718e8a3c34fd650dc0
Comment 30•6 years ago
|
||
Comment 31•6 years ago
|
||
I pushed the patch with a lint fix in my own name. Backed it out,
and re-applied it with correct patch author name and email.
Comment 33•6 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•