{"size": 671, "ext": "js", "max_stars_repo_path": "lib/api/protocol/sessionLogTypes.js", "max_stars_repo_name": "SMaqsoodi/nightwatch", "max_stars_repo_stars_event_min_datetime": "2015-06-22T08:07:59.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T16:15:49.000Z", "max_issues_repo_path": "lib/api/protocol/sessionLogTypes.js", "max_issues_repo_name": "SMaqsoodi/nightwatch", "max_issues_repo_issues_event_min_datetime": "2015-06-22T07:38:35.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T10:01:27.000Z", "max_forks_repo_path": "lib/api/protocol/sessionLogTypes.js", "max_forks_repo_name": "SMaqsoodi/nightwatch", "max_forks_repo_forks_event_min_datetime": "2015-06-22T21:29:04.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T20:18:45.000Z"}
{"max_stars_count": 9059, "max_issues_count": 2375, "max_forks_count": 1163, "avg_line_length": 31.9523809524, "max_line_length": 190, "alphanum_fraction": 0.7123695976}
const ProtocolAction = require('./_base-action.js');

/**
 * Gets an array of strings for which log types are available. This methods returns the entire WebDriver response, if you are only interested in the logs array, use `.getLogTypes()` instead.
 *
 * @example
 *  this.demoTest = function (browser) {
 *    browser.sessionLogTypes(function(result) {
 *      console.log(result.value);
 *    });
 * }
 *
 * @param {function} callback Callback function which is called with the result value.
 * @api protocol.sessions
 */
module.exports = class Action extends ProtocolAction {
  command(callback) {
    return this.transportActions.getSessionLogTypes(callback);
  }
};
