lib/appium_lib/common/helper.rb in appium_lib-0.5.7 vs lib/appium_lib/common/helper.rb in appium_lib-0.5.8

- old
+ new

@@ -206,6 +206,14 @@ # @param name [String] the name to exactly match # @return [Array<Element>] def find_names name find_elements :name, name end + + # Returns the first element matching tag_name + # + # @param tag_name [String] the tag_name to search for + # @return [Element] + def tag tag_name + find_element :tag_name, tag_name + end end # module Appium::Common \ No newline at end of file