Skip to content

Commit 9752a3b

Browse files
Add tag method
1 parent 0d20089 commit 9752a3b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/appium_lib/common/helper.rb

+8
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,12 @@ def find_name name
208208
def find_names name
209209
find_elements :name, name
210210
end
211+
212+
# Returns the first element matching tag_name
213+
#
214+
# @param tag_name [String] the tag_name to search for
215+
# @return [Element]
216+
def tag tag_name
217+
find_element :tag_name, tag_name
218+
end
211219
end # module Appium::Common

0 commit comments

Comments
 (0)