Sha256: 565f01f9065a5892576b6f33bba44ad56466bf608d9a0e2f0e0cd3e955944316

Contents?: true

Size: 778 Bytes

Versions: 2

Compression:

Stored size: 778 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

2 entries across 2 versions & 1 rubygems

Version Path
appium_lib-9.7.1 lib/appium_lib/common/log.rb
appium_lib-9.7.0 lib/appium_lib/common/log.rb