module Appium::Android::Espresso::Helper
Public Instance Methods
complex_find_contains(class_name, value)
click to toggle source
Find the first element that contains value @param class_name [String] the class name for the element @param value [String] the value to search for @return [Element]
# File lib/appium_lib/android/espresso/helper.rb, line 23 def complex_find_contains(class_name, value) find_element :xpath, string_visible_contains_xpath(class_name, value) end
complex_find_exact(class_name, value)
click to toggle source
Find the first element exactly matching value @param class_name [String] the class name for the element @param value [String] the value to search for @return [Element]
# File lib/appium_lib/android/espresso/helper.rb, line 39 def complex_find_exact(class_name, value) find_element :xpath, string_visible_exact_xpath(class_name, value) end
complex_finds_contains(class_name, value)
click to toggle source
Find all elements containing value @param class_name [String] the class name for the element @param value [String] the value to search for @return [Array<Element>]
# File lib/appium_lib/android/espresso/helper.rb, line 31 def complex_finds_contains(class_name, value) find_elements :xpath, string_visible_contains_xpath(class_name, value) end
complex_finds_exact(class_name, value)
click to toggle source
Find all elements exactly matching value @param class_name [String] the class name for the element @param value [String] the value to search for @return [Element]
# File lib/appium_lib/android/espresso/helper.rb, line 47 def complex_finds_exact(class_name, value) find_elements :xpath, string_visible_exact_xpath(class_name, value) end