Gets the text of the log type specified. To find out the available log types, use .getLogTypes().

Returns a log entry JSON object.

Usage

.sessionLog(typeString, callback)

Parameters

Name Type description
typeString string

Type of log to request. Can be one of: client, driver, browser, server

callback function

Callback function which is called with the result value.

Returns

Type description
Array Array of the text entries of the log.

Example

 this.demoTest = function (browser) {
   browser.sessionLog('client', function(result) {
     console.log(result.value);
   });
}