lib/appium_lib/ios/element/button.rb in appium_lib-9.3.3 vs lib/appium_lib/ios/element/button.rb in appium_lib-9.3.4

- old
+ new

@@ -30,12 +30,12 @@ # @return [Array<UIAButton|XCUIElementTypeButton>] def buttons(value = false) return tags button_class unless value if automation_name_is_xcuitest? - visible_elements = tags button_class - elements_include visible_elements, value + elements = find_eles_by_predicate_include(class_name: button_class, value: value) + select_visible_elements elements else eles_by_json_visible_contains button_class, value end end @@ -67,11 +67,11 @@ # Find all UIAButtons|XCUIElementTypeButtons that exactly match value. # @param value [String] the value to match exactly # @return [Array<UIAButton|XCUIElementTypeButton>] def buttons_exact(value) if automation_name_is_xcuitest? - visible_elements = tags button_class - elements_exact visible_elements, value + elements = find_eles_by_predicate(class_name: button_class, value: value) + select_visible_elements elements else eles_by_json_visible_exact button_class, value end end end # module Ios