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

Parameters

Name Type description
callback function

Callback function which is called with the result value.

W3C WebDriver spec: