Sha256: 6d179eadb416bf51715bb00e410b10d54668f5d0d22ad0438329de82c920b7f3
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
# encoding: utf-8 module Watir class CheckBox < Input include SharedRadioCheckbox identifier :type => 'checkbox' container_method :checkbox collection_method :checkboxes def set(bool = true) assert_exists assert_enabled if @element.selected? @element.click unless bool else @element.click if bool end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-webdriver-0.0.1.dev | lib/watir-webdriver/elements/checkbox.rb |