Sha256: 3ab709f009ee599f8ce2996790b9d56b6a36731ae9d7c4d58e1bec4733956675

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

module Calabash
  module IOS
    module UIA

      # Evaluates `script` with Apple's UIAutomation API.
      #
      def uia(script)
        Device.default.evaluate_uia(script)
      end

      def uia_with_target(script)
        uia("UIATarget.localTarget().#{script}")
      end

      def uia_with_app(script)
        uia("UIATarget.localTarget().frontMostApp().#{script}")
      end

      def uia_with_main_window(script)
        uia("UIATarget.localTarget().frontMostApp().mainWindow().#{script}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calabash-1.9.9.pre2 lib/calabash/ios/uia.rb
calabash-1.9.9.pre1 lib/calabash/ios/uia.rb