Returns the page source.

Usage

.pageSource(callback)

Parameters

Name Type description
callback function

Callback function which is called with the result value.

Returns

Type description
string The page source.

Example

 this.demoTest = function (browser) {
   browser.pageSource(function(pageSource) {
     console.log(pageSource);
   });
 };

See also