lib/watir-webdriver/attribute_helper.rb in watir-webdriver-0.1.0 vs lib/watir-webdriver/attribute_helper.rb in watir-webdriver-0.1.1
- old
+ new
@@ -65,10 +65,10 @@
end
def define_boolean_attribute(mname, aname)
define_method mname do
assert_exists
- !!@element.attribute(aname)
+ @element.attribute(aname) == "true"
end
end
def define_int_attribute(mname, aname)
define_method mname do