Closed Bug 1323537 Opened 9 years ago Closed 9 years ago

Implement TakeElementScreenshot command

Categories

(Remote Protocol :: Marionette, defect)

Version 3
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: whimboo, Unassigned)

References

(Blocks 1 open bug, )

Details

The webdriver spec says that we should have a TakeElementScreenshot command, which hasn't been implemented yet. https://w3c.github.io/webdriver/webdriver-spec.html#take-element-screenshot The code as necessary to run already exists in the current screenshot command but would have to be untangled into this new method. We should keep backward compatibility for now so screenshot should forward element screenshots to the new method. We should wait until bug 1243415 has been landed.
Can't the Chrome code use the current capture code for element screenshots?
Flags: needinfo?(hskupin)
I thought we need a 1-1 mapping for each command in Marionette. Isn't it the case? When I talked with Andreas he agreed on it. So please figure both out.
Flags: needinfo?(hskupin) → needinfo?(ato)
I don’t care particularly if we call GeckoDriver.prototype.takeScreenshot with {full: false} from geckodriver. This means we can avoid adding a new command to Marionette.
Flags: needinfo?(ato)
This feels like a bug that should be filed in geckodriver.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.