Method: Appium::Core::Logs#events

Defined in:
lib/appium_lib_core/common/log.rb

#events(type = nil) ⇒ Hash

Returns events with filtering with ‘type’. Defaults to all available events.

Examples:


@driver.logs.events #=> {}
@driver.logs.events #=> {'commands' => [{'cmd' => 123455, ....}], 'startTime' => 1572954894127, }

Parameters:

  • type (String, Array<String>) (defaults to: nil)

    The type of events to get

Returns:

  • (Hash)

Since:

  • Appium 1.16.0



85
86
87
# File 'lib/appium_lib_core/common/log.rb', line 85

def events(type = nil)
  @bridge.log_events(type)
end