Skip to content

Commit bf8e789

Browse files
committed
Lower case tag names - Safari insists on upper-case.
1 parent 2ff36b1 commit bf8e789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/async/webdriver/element.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ def text
211211
# element.tagName
212212
# ```
213213
#
214-
# @returns [String] The tag name of the element.
214+
# @returns [String] The tag name of the element, always in lowercase for consistency across browsers.
215215
def tag_name
216-
get("name")
216+
get("name").downcase
217217
end
218218

219219
# A struct representing the size of an element.

0 commit comments

Comments
 (0)