Module: Appium::Core::Ios::SearchContext

Defined in:
lib/appium_lib_core/ios/search_context.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extendObject

Examples:

find_elements :uiautomation, 'elements()
find_elements :predicate, "isWDVisible == 1"
find_elements :predicate, 'wdName == "Buttons"'
find_elements :predicate, 'wdValue == "SearchBar" AND isWDDivisible == 1'


20
21
22
23
# File 'lib/appium_lib_core/ios/search_context.rb', line 20

def self.extend
  ::Appium::Core::Base::SearchContext.add_finders(uiautomation: '-ios uiautomation')
  ::Appium::Core::Base::SearchContext.add_finders(predicate: '-ios predicate string')
end

Instance Method Details

#ios_predicate_string_findObject



20
21
22
23
# File 'lib/appium_lib_core/ios/search_context.rb', line 20

def self.extend
  ::Appium::Core::Base::SearchContext.add_finders(uiautomation: '-ios uiautomation')
  ::Appium::Core::Base::SearchContext.add_finders(predicate: '-ios predicate string')
end

#uiautomation_findObject



20
21
22
23
# File 'lib/appium_lib_core/ios/search_context.rb', line 20

def self.extend
  ::Appium::Core::Base::SearchContext.add_finders(uiautomation: '-ios uiautomation')
  ::Appium::Core::Base::SearchContext.add_finders(predicate: '-ios predicate string')
end