class TestCentricity::CellRadio
Attributes
proxy[RW]
Public Class Methods
new(name, parent, locator, context, table, column, proxy = nil)
click to toggle source
Calls superclass method
TestCentricity::CellElement::new
# File lib/testcentricity/web_elements/cell_radio.rb, line 5 def initialize(name, parent, locator, context, table, column, proxy = nil) super @type = :cell_radio @proxy = proxy end
Public Instance Methods
select(row)
click to toggle source
# File lib/testcentricity/web_elements/cell_radio.rb, line 23 def select(row) set_selected_state(row, true) end
selected?(row)
click to toggle source
# File lib/testcentricity/web_elements/cell_radio.rb, line 11 def selected?(row) obj, = find_cell_element(row) cell_object_not_found_exception(obj, 'Cell Radio', row) obj.checked? end
set_selected_state(row, state)
click to toggle source
# File lib/testcentricity/web_elements/cell_radio.rb, line 17 def set_selected_state(row, state) obj, = find_cell_element(row) cell_object_not_found_exception(obj, 'Cell Radio', row) obj.set(state) end
unselect(row)
click to toggle source
# File lib/testcentricity/web_elements/cell_radio.rb, line 27 def unselect(row) set_selected_state(row, false) end