Sha256: ebf1e825191a9bb4eceab20550d57092c82e8115e9c0e4740373e6b8d8b8a886

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 Bytes

Contents

module Appium
  module Ios
    module Xcuitest
      module Source
        # @param [String|Symbol] format :xml or :json. :xml is by default.
        # @option opts [Element] :element Element to swipe on
        #
        #   ```ruby
        #   xcuitest_source format: :json
        #   ```
        def xcuitest_source(format: :xml)
          format = format.to_s if format.is_a? Symbol
          args = { format: format }

          @driver.execute_script 'mobile: source', args
        end
      end # module Gesture
    end # module Xcuitest
  end # module Ios
end # module Appium

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
appium_lib-9.8.1 lib/appium_lib/ios/xcuitest/command/source.rb
appium_lib-9.7.5 lib/appium_lib/ios/xcuitest/command/source.rb
appium_lib-9.7.4 lib/appium_lib/ios/xcuitest/command/source.rb
appium_lib-9.7.3 lib/appium_lib/ios/xcuitest/command/source.rb