Sha256: 04773f43de2298707b698362d60c70ea53fdfa0d6723d287ceef93a44e699a41

Contents?: true

Size: 796 Bytes

Versions: 6

Compression:

Stored size: 796 Bytes

Contents

module Appium
  module Common
    # @param [String|Hash] type You can get particular type's logs.
    # @return [[Selenium::WebDriver::LogEntry]] A list of logs data.
    #
    # @example
    #
    #   @driver.get_log("syslog") #=> [[Selenium::WebDriver::LogEntry]]
    #   @driver.get_log(:syslog)  #=> [[Selenium::WebDriver::LogEntry]]
    #
    def get_log(type)
      Appium::Core::Logs.new(@driver.manage.logs).get type
    end

    # Get a list of available log types
    #
    # @return [[String]] A list of available log types.
    #
    # @example
    #
    #   @driver.get_available_log_types #=> [:syslog, :crashlog, :performance]
    #
    def get_available_log_types
      Appium::Core::Logs.new(@driver.manage.logs).available_types
    end
  end # module Common
end # module Appium

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appium_lib-9.8.2 lib/appium_lib/common/log.rb
appium_lib-9.8.1 lib/appium_lib/common/log.rb
appium_lib-9.7.5 lib/appium_lib/common/log.rb
appium_lib-9.7.4 lib/appium_lib/common/log.rb
appium_lib-9.7.3 lib/appium_lib/common/log.rb
appium_lib-9.7.2 lib/appium_lib/common/log.rb