lib/appium_lib/ios/xcuitest/element/button.rb in appium_lib-9.15.1 vs lib/appium_lib/ios/xcuitest/element/button.rb in appium_lib-9.15.2

- old
+ new

@@ -15,18 +15,20 @@ # If int then the UIAButton|XCUIElementTypeButton at that index is returned. # @return [UIAButton|XCUIElementTypeButton] def button(value) # return button at index. return ele_index button_class, value if value.is_a? Numeric + raise_error_if_no_element buttons(value).first end # Find all UIAButtons|XCUIElementTypeButtons containing value. # If value is omitted, all UIAButtons|XCUIElementTypeButtons are returned. # @param value [String] the value to search for # @return [Array<UIAButton|XCUIElementTypeButton>] def buttons(value = false) return tags button_class unless value + elements = find_eles_by_predicate_include(class_name: button_class, value: value) select_visible_elements elements end # Find the first UIAButton|XCUIElementTypeButton.