UNPKG

webdriverio-workflo

Version:

This is a customized version of webdriverio for use with workflo framework.

31 lines (29 loc) 983 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = 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). * * <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 * */ function logTypes() { return this.requestHandler.create('/session/:sessionId/log/types'); } module.exports = exports['default'];