-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot take screenshot of document containing only absolutely-positioned elements #931
Comments
This is probably approximately equal to #465. |
Please note that @AutomatedTester raised bug 1398087 so that it is taken from the top-level browsing context. |
I am encountering the same issue. I need to take a screenshot of an element that contains a By extension, the JavaScript function |
Looks like it was fixed in Firefox 66. |
Looks like we missed to file a bug for Marionette. This is https://bugzilla.mozilla.org/show_bug.cgi?id=1581494 now. |
I just filed the webdriver issue for discussion: w3c/webdriver#1443 |
System
Testcase
Output is
iVBORw0KGgoAAAANSUhEUgAABQAAAAAICAYAAACmj1I9AAAAVUlEQVR4nO3YQQkAMAzAwPo33aoYg3CnIO/MAgAAAABZ8zsAAAAAAHjHAAQAAACAMAMQAAAAAMIMQAAAAAAIMwABAAAAIMwABAAAAIAwAxAAAAAAwg6DL2lSiZEF0gAAAABJRU5ErkJggg== (192 bytes)
, which is a 1280 x 8 PNG that is all white pixels. I expect the screenshot to contain, at a minimum, the 200x200 blue rectangle.1280x8 is equal to the dimensions of
document.documentElement.getBoundingClientRect()
. And the spec does indeed say to screenshot the "current top-level browsing context’s document element’s rectangle". So this may technically be in line with the spec, but it's not a very desirable outcome.FWIW, if you position the div at
top: 0
, then the div intersects the document's rectangle, so you can see some blue in the screenshot.Trace-level log
geckodriver.log.txt
The text was updated successfully, but these errors were encountered: