Returns a string serialisation of the DOM of the current page.

Usage

Parameters

Name Type description
callback function

Callback function which is called with the result value.

W3C WebDriver spec