This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
When ripping out webIDL I noticed that in takeScreenshot is a GET which aligns with the OSS Project implementation[1]. We also have the ability now to take screenshots of elements. This will either need to be a POST of the current url endpoint (yuck in my opinion) or a completely new endpoint. I propose we using GET /session/{sessionId}/screenshot/{ELEMENT} instead of changing the original call to POST. Thoughts?
For consistency with other element-level operations I think: GET /session/{sessionId}/element/{element}/screenshot makes the most sense as an endpoint.
Yes, I think Marc is correct.
landed in 9cbf052
https://github.com/w3c/webdriver/commit/9cbf052d90a205115347f303b74fc26400bedbc5
Spec text still says 'Leaving below until Bug 27920 has a consensus'
I do think we have consensus on this, but the spec just needs to change to match it. Marc's proposal makes a lot of sense.
Apart from the fact that the spec text here needs some work, I don't think there is an actual issue. https://w3c.github.io/webdriver/webdriver-spec.html#element exists.
Oh unless you mean that the URL is still wrong. But it's just as quick to fix that as discuss it here; I'll make a PR.