getEvents method

Future<Map<String, dynamic>> getEvents({
  1. String type = '',
})

Gets events

Example:

await driver.logs.getEvents(); //=> {commands: {cmd: timeouts, startTime: 1575388557299, endTime: 1575388557300}, {cmd: getLogTypes, startTime: 1575388557313, endTime: 1575388557313}, {cmd: getLog, startTime: 1575388557326, endTime: 1575388557326}, {cmd: logCustomEvent, startTime: 1575388557453, endTime: 1575388557454}, {cmd: getLogEvents, startTime: 1575388557458, endTime: 1575388557459}, // custom:event: 1575388557453}

Implementation

Future<Map<String, dynamic>> getEvents({String type = ''}) => _client.send(
    _handler.logs.buildGetEventsRequest(type: type),
    _handler.logs.parseGetEventsResponse);