.pageSource() Suggest edits
Returns the page source.
Usage
.pageSource(callback)
Example
this.demoTest = function (browser) {
browser.pageSource(function(pageSource) {
console.log(pageSource);
});
};
Parameters
| Name | Type | description |
|---|---|---|
callback |
function | Callback function which is called with the result value. |
Returns
| Type | description |
|---|---|
| string | The page source. |