This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The wording of the takeScreenshot command isn't great, and it currently doesn't define which area of the screen to capture when not given an explicit web element reference. Selenium uses a prioritized list of preferred things to capture: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/TakesScreenshot.html This isn't great and we should mandate something the browsers should do, which can be one of the following I guess: - Browser window including chrome - Visible viewport - Canvas of bounding box of the document of the top-level browsing context
An interesting question, I find, is whether the last point can be replaced by doing (pseudo code) driver.find_element_by_css(":root").take_screenshot(), which would send the web element reference ID of ":root" as an argument to takeScreenshot. If we're happy with that we could have takeScreenshot without arguments just do the visible viewport or the browser window.
*** Bug 25692 has been marked as a duplicate of this bug. ***
Initial implementation in https://dvcs.w3.org/hg/webdriver/rev/e4451afd6d71
Seeing as no comments have been added (and I am sure there are other errors so raise a new bug for those) I am closing this bug