lib/watir-webdriver/elements/checkbox.rb in watir-webdriver-0.0.1.dev vs lib/watir-webdriver/elements/checkbox.rb in watir-webdriver-0.0.1.dev2

- old
+ new

@@ -1,10 +1,8 @@ # encoding: utf-8 module Watir class CheckBox < Input - include SharedRadioCheckbox - identifier :type => 'checkbox' container_method :checkbox collection_method :checkboxes @@ -15,9 +13,18 @@ if @element.selected? @element.click unless bool else @element.click if bool end + end + + def set? + assert_exists + @element.selected? + end + + def clear + set false end end end