Sha256: 977a8cca27d715f8d798590982da2d3e90aec263055eae01eebab74acbcd7a7f

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

module Appium
  module Core
    module Ios
      module SearchContext
        # @!method uiautomation_find
        #   find_element/s can be used with a [UIAutomation command](https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIAWindowClassReference/UIAWindow/UIAWindow.html#//apple_ref/doc/uid/TP40009930).
        #
        #   ```ruby
        #    find_elements :uiautomation, 'elements()
        #   ```
        #
        # @!method ios_predicate_string_find
        #   find_element/s can be used with a [Predicates](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Predicates/AdditionalChapters/Introduction.html)
        #
        #   ```ruby
        #    find_elements :predicate, "isWDVisible == 1"
        #    find_elements :predicate, 'wdName == "Buttons"'
        #    find_elements :predicate, 'wdValue == "SearchBar" AND isWDDivisible == 1'
        #   ```
        def self.extend
          ::Appium::Core::Base::SearchContext.add_finders(uiautomation: '-ios uiautomation')
          ::Appium::Core::Base::SearchContext.add_finders(predicate: '-ios predicate string')
        end
      end # class << self
    end # module Ios
  end # module Core
end # module Appium

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appium_lib-9.7.5 lib/appium_lib/core/ios/search_context.rb
appium_lib-9.7.4 lib/appium_lib/core/ios/search_context.rb
appium_lib-9.7.3 lib/appium_lib/core/ios/search_context.rb
appium_lib-9.7.2 lib/appium_lib/core/ios/search_context.rb
appium_lib-9.7.1 lib/appium_lib/core/ios/search_context.rb
appium_lib-9.7.0 lib/appium_lib/core/ios/search_context.rb