logTypes

Get available log types. This command is not part of the official Webdriver specification. Therefor the result can vary depending on the capability you are running the test. (Not part of the official Webdriver specification).

Usage

1
browser.logTypes();

Example

logTypes.js
1
2
3
4
it('demonstrate all available log types', function () {
var logTypes = browser.logTypes();
console.log(logTypes); // outputs: ['browser', 'driver', 'client', 'server']
});

Returns

  • <Strings[]>: The list of available log types