W3C home > Mailing lists > Public > public-browser-tools-testing@w3.org > January to March 2013

Proposal - change takesElementScreenshot to use takeScreenshot with a parameter

From: David Burns <dburns@mozilla.com>
Date: Wed, 23 Jan 2013 15:13:30 +0000
Message-ID: <50FFFE1A.1020806@mozilla.com>
To: public-browser-tools-testing <public-browser-tools-testing@w3.org>
I would like to propose that 16.3 use the same method as in 16.2 and 
that 16.2 take an additional parameter of the element ID.

e.g.
Command Name 	takesScreenshot
Parameters 	"sessionId" {string} The key that identifies which session 
this request is for.
"elementId" {string} The key that identifies which WebElement must be 
captured
Return Value 	{string} A Base64 encoded, lossless PNG of the current 
window.
Errors 	WebDriverException if the screenshot cannot be taken.



This will simplify code for the remote end and will just be an extension 
to the current URL in the JSON Wire Protocol to 
//session/:sessionId/screenshot/:id/

David
Received on Wednesday, 23 January 2013 15:14:04 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 12 February 2015 15:39:01 UTC