Async::WebDriver SourceAsyncWebDriverScopePrinting

module Printing

Helpers for working with printing.

Definitions

def print(page_ranges: nil, total_pages: nil)

Print the current page and return the result as a Base64 encoded string containing a PDF representation of the paginated document.

Implementation

def print(page_ranges: nil, total_pages: nil)
	reply = session.post("print", {pageRanges: page_ranges, totalPages: total_pages}.compact)
	
	return Base64.decode64(reply["value"])
end