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])
                

Example

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

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.