lib/page-object/elements/check_box.rb in page-object-2.2 vs lib/page-object/elements/check_box.rb in page-object-2.2.1
- old
+ new
@@ -1,31 +1,9 @@
module PageObject
module Elements
class CheckBox < Element
- #
- # check the checkbox
- #
- def check
- element.set
- end
-
- #
- # uncheck the checkbox
- #
- def uncheck
- element.clear
- end
-
- #
- # return true if checkbox is checked
- #
- def checked?
- element.set?
- end
-
end
::PageObject::Elements.type_to_class[:checkbox] = ::PageObject::Elements::CheckBox
-
end
end