Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
make sure that label exists when asking it's :for attribute
  • Loading branch information
jarmo committed Dec 9, 2011
1 parent fb4f99f commit 69e4e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions watir/lib/watir/element.rb
Expand Up @@ -178,6 +178,7 @@ def name

# Return the "for" attribute value for label element
def for
assert_exists
ole_object.htmlFor rescue ''
end

Expand Down

0 comments on commit 69e4e4d

Please sign in to comment.