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