Sha256: f4432f7150299aa7ce019a23a0d384d8785625c20579ad08d4e5ef273191292e
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
require 'domkey/view/option_selectable_group' module Domkey module View # CheckboxGroup allows you to interact with PageObjectCollection of checkboxes as a single PageObject. # Acts like OptionSelectable # Checkboxes collection is constrained by the same name attribute # Behaves like a multi Select list. # It can have none, one or more options selected class CheckboxGroup < OptionSelectableGroup private def set_by_symbol value case value when FalseClass each { |o| o.set false } when TrueClass return #noop else fail(Exception::NotImplementedError, "Unknown way of setting by value: #{value.inspect}") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
domkey-0.4.0 | lib/domkey/view/checkbox_group.rb |