class Capybara::UI::CheckBox
A check box.
Public Instance Methods
get()
click to toggle source
@return [Boolean] true
if the checkbox is checked, false
otherwise.
# File lib/capybara/ui/widgets/check_box.rb, line 14 def get !! root.checked? end
to_cell()
click to toggle source
# File lib/capybara/ui/widgets/check_box.rb, line 18 def to_cell to_s end
to_s()
click to toggle source
@return +“yes”+ if the checkbox is checked, +“no”+ otherwise.
# File lib/capybara/ui/widgets/check_box.rb, line 23 def to_s get ? 'yes' : 'no' end