module Appium::Ios::Xcuitest::Source

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

Public Instance Methods

xcuitest_source(format: :xml) click to toggle source

@param [String|Symbol] format :xml or :json. :xml is by default.

```ruby
xcuitest_source format: :json
```
# 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