webdriverio-workflo
Version:
This is a customized version of webdriverio for use with workflo framework.
25 lines (23 loc) • 852 B
JavaScript
/**
*
* 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).
*
* <example>
:logTypes.js
it('demonstrate all available log types', function () {
var logTypes = browser.logTypes();
console.log(logTypes); // outputs: ['browser', 'driver', 'client', 'server']
});
* </example>
*
* @return {Strings[]} The list of available [log types](https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#log-type)
*
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes
* @type protocol
*
*/
export default function logTypes () {
return this.requestHandler.create('/session/:sessionId/log/types')
}