View Source Improve this doc

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 runnint the test.

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']
});