Sha256: a4bda58521ce0ec66d065d7a6aa35a2fe45a09e5dff2d000ffb1ac5a0efd3871
Contents?: true
Size: 1.21 KB
Versions: 12
Compression:
Stored size: 1.21 KB
Contents
require_relative 'command/pasteboard' require_relative 'command/gestures' require_relative 'command/source' require_relative 'command/multi_app_handler' require_relative 'command/get_context' module Appium module Ios module Xcuitest module Command # Starts iOS syslog broadcast websocket # # @param [String] syslog_file A file path to write messages from a syslog WebSocket client # # @example # # start_logs_broadcast 'outputfile.log' #=> #<Appium::Android::Command::WsLogcat:...> # def start_logs_broadcast(syslog_file = 'syslog.log') @driver.execute_script 'mobile: startLogsBroadcast' socket_url = "ws://#{URI.parse(server_url).host}:#{@core.port}/ws/session/#{@driver.session_id}/appium/device/syslog" @logcat_client = ::Appium::Common::Command::WsLogcat.new(url: socket_url, output_file: syslog_file) end # Stop iOS syslog broadcast websocket # # @example # # stop_logs_broadcast #=> nil # def stop_logs_broadcast @logcat_client.close @driver.execute_script 'mobile: stopLogsBroadcast' end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems