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

- old
+ new

@@ -14,18 +14,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 + ele_by_json_visible_contains button_class, value 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 + eles_by_json_visible_contains button_class, value end # Find the first UIAButton|XCUIElementTypeButton. # @return [UIAButton|XCUIElementTypeButton]