lib/appium_lib/ios/element/button.rb in appium_lib-6.0.0 vs lib/appium_lib/ios/element/button.rb in appium_lib-7.0.0

- old
+ new

@@ -5,21 +5,21 @@ # Find the first UIAButton that contains value or by index. # @param value [String, Integer] the value to exactly match. # If int then the UIAButton at that index is returned. # @return [UIAButton] - def button value + def button(value) # return button at index. return ele_index UIAButton, value if value.is_a? Numeric ele_by_json_visible_contains UIAButton, value end # Find all UIAButtons containing value. # If value is omitted, all UIAButtons are returned. # @param value [String] the value to search for # @return [Array<UIAButton>] - def buttons value=false + def buttons(value = false) return tags UIAButton unless value eles_by_json_visible_contains UIAButton, value end # Find the first UIAButton. @@ -35,17 +35,17 @@ end # Find the first UIAButton that exactly matches value. # @param value [String] the value to match exactly # @return [UIAButton] - def button_exact value + def button_exact(value) ele_by_json_visible_exact UIAButton, value end # Find all UIAButtons that exactly match value. # @param value [String] the value to match exactly # @return [Array<UIAButton>] - def buttons_exact value + def buttons_exact(value) eles_by_json_visible_exact UIAButton, value end end # module Ios -end # module Appium \ No newline at end of file +end # module Appium