lib/appium_lib/android/uiautomator2/helper.rb
def complex_find_contains(class_name, value)
          elements = find_elements :uiautomator, string_visible_contains(class_name, value)
          raise _no_such_element if elements.empty?

          elements.first
        end
# 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]
Find the first element that contains value
Find the first element that contains value
def complex_find_contains(class_name, value)
          elements = find_elements :uiautomator, string_visible_contains(class_name, value)
          raise _no_such_element if elements.empty?
          elements.first
        end
def complex_find_contains ( class_name , value ) elements = find_elements :uiautomator , string_visible_contains ( class_name , value ) raise _no_such_element if elements . empty? elements . first end
Find the first element that contains value
Find the first element that contains value
None
Element
class_name
the class name for the element
the class name for the element
value
the value to search for
the value to search for