lib/appium_lib/ios/common/helper.rb
# Find all elements exactly matching attribute case insensitive value.
# Note: Uses Predicate
# @param value [String] the value of the attribute that the element must have
# @param class_name [String] the tag name to match
# @return [Array<Element>]
Find all elements exactly matching attribute case insensitive value.
Note: Uses Predicate
Find all elements exactly matching attribute case insensitive value . Note : Uses Predicate
def find_eles_by_predicate(class_name: '*', value:)
      predicate = if class_name == '*'
                    %(name == "#{value}" || label == "#{value}" || value == "#{value}")
                  else
                    %(type == "#{class_name}" && ) +
                      %((name == "#{value}" || label == "#{value}" || value == "#{value}"))
                  end
      @driver.find_elements :predicate, predicate
    end
def find_eles_by_predicate ( class_name : '*' , value : ) predicate = if class_name == '*' %(name == "#{value}" || label == "#{value}" || value == "#{value}") else %(type == "#{class_name}" && ) + %((name == "#{value}" || label == "#{value}" || value == "#{value}")) end @driver . find_elements :predicate , predicate end
Find all elements exactly matching attribute case insensitive value.
Find all elements exactly matching attribute case insensitive value .
None
Array<Element>
class_name
the tag name to match
the tag name to match
value
the value of the attribute that the element must have
the value of the attribute that the element must have