Permalink
Browse files

possibility to search TextField by :label

  • Loading branch information...
1 parent f169c18 commit f590be6dc5b8219befd2defaa88548e0bab28769 @jarmo jarmo committed Jan 11, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 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

0 comments on commit f590be6

Please sign in to comment.