Async::WebDriver SourceAsyncWebDriverScopeScreenCapture

module ScreenCapture

Helpers for working with screen capture.

Definitions

def screenshot

Take a screenshot of the current page or element.

Signature

returns String

The screenshot as a Base64 encoded string.

Implementation

def screenshot
	reply = current_scope.post("screenshot")
	
	return Base64.decode64(reply)
end