Module: Appium::Core::Android::SearchContext

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extendObject

Examples:


@driver.find_elements :uiautomator, 'new UiSelector().clickable(true)'


12
13
14
# File 'lib/appium_lib_core/android/search_context.rb', line 12

def self.extend
  ::Appium::Core::Base::SearchContext.add_finders(uiautomator: '-android uiautomator')
end

Instance Method Details

#uiautomator_findObject

find_element/s can be used with a [UISelector](developer.android.com/tools/help/uiautomator/UiSelector.html).



12
13
14
# File 'lib/appium_lib_core/android/search_context.rb', line 12

def self.extend
  ::Appium::Core::Base::SearchContext.add_finders(uiautomator: '-android uiautomator')
end