Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

possibility to search TextField by :label

  • Loading branch information...
commit f590be6dc5b8219befd2defaa88548e0bab28769 1 parent f169c18
@jarmo jarmo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 watir/lib/watir/input_elements.rb
View
4 watir/lib/watir/input_elements.rb
@@ -374,6 +374,10 @@ def limit_to_maxlength(value)
end
value
end
+
+ def label
+ @container.label(:for => name).text
+ end
end
# this class can be used to access hidden field objects
Please sign in to comment.
Something went wrong with that request. Please try again.