Sha256: e1dfae85dedec3cb914c16cce465bd18fde69201ae7a1eedb3a7bbc4d3510adb

Contents?: true

Size: 868 Bytes

Versions: 14

Compression:

Stored size: 868 Bytes

Contents

module Appium
  module Core
    class Logs
      def initialize(bridge)
        @bridge = bridge
      end

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

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
appium_lib_core-1.2.3 lib/appium_lib_core/common/log.rb
appium_lib_core-1.2.2 lib/appium_lib_core/common/log.rb
appium_lib_core-1.2.1 lib/appium_lib_core/common/log.rb
appium_lib_core-1.2.0 lib/appium_lib_core/common/log.rb
appium_lib_core-1.1.0 lib/appium_lib_core/common/log.rb
appium_lib_core-1.0.0 lib/appium_lib_core/common/log.rb
appium_lib_core-0.1.1 lib/appium_lib_core/common/log.rb
appium_lib_core-0.1.0 lib/appium_lib_core/common/log.rb
appium_lib-9.7.5 lib/appium_lib/core/common/log.rb
appium_lib-9.7.4 lib/appium_lib/core/common/log.rb
appium_lib-9.7.3 lib/appium_lib/core/common/log.rb
appium_lib-9.7.2 lib/appium_lib/core/common/log.rb
appium_lib-9.7.1 lib/appium_lib/core/common/log.rb
appium_lib-9.7.0 lib/appium_lib/core/common/log.rb