Module: Appium::Ios::Xcuitest::Source

Defined in:
lib/appium_lib/ios/xcuitest/command/source.rb

Overview

Instance method have ‘xcuitest_` prefix to prevent conflicts for core commands.

Instance Method Summary collapse

Instance Method Details

#xcuitest_source(format: :xml) ⇒ Object

Parameters:

  • format (String|Symbol) (defaults to: :xml)

    :xml or :json. :xml is by default.

    “‘ruby xcuitest_source format: :json “`



25
26
27
28
29
30
# File 'lib/appium_lib/ios/xcuitest/command/source.rb', line 25

def xcuitest_source(format: :xml)
  format = format.to_s if format.is_a? Symbol
  args = { format: format }

  @driver.execute_script 'mobile: source', args
end