Class: TestCentricity::CellRadio
- Inherits:
-
CellElement
- Object
- UIElement
- CellElement
- TestCentricity::CellRadio
- Defined in:
- lib/testcentricity_web/elements/cell_radio.rb
Instance Attribute Summary collapse
-
#proxy ⇒ Object
Returns the value of attribute proxy.
Attributes inherited from CellElement
Attributes inherited from UIElement
#alt_locator, #context, #locator, #name, #parent, #type
Instance Method Summary collapse
-
#initialize(name, parent, locator, context, table, column, proxy) ⇒ CellRadio
constructor
A new instance of CellRadio.
- #select(row) ⇒ Object
- #selected?(row) ⇒ Boolean
- #set_selected_state(row, state) ⇒ Object
- #unselect(row) ⇒ Object
Methods inherited from CellElement
#cell_object_not_found_exception, #click, #exists?, #find_cell_element
Methods inherited from UIElement
#clear_alt_locator, #click, #click_at, #disabled?, #double_click, #drag_and_drop, #drag_by, #enabled?, #exists?, #get_attribute, #get_locator, #get_name, #get_native_attribute, #get_object_type, #get_siebel_object_type, #get_value, #hidden?, #hover, #invoke_siebel_dialog, #right_click, #send_keys, #set, #set_alt_locator, #verify_value, #visible?, #wait_until_exists, #wait_until_gone, #wait_until_hidden, #wait_until_value_changes, #wait_until_value_is, #wait_until_visible
Constructor Details
#initialize(name, parent, locator, context, table, column, proxy) ⇒ CellRadio
Returns a new instance of CellRadio.
5 6 7 8 9 |
# File 'lib/testcentricity_web/elements/cell_radio.rb', line 5 def initialize(name, parent, locator, context, table, column, proxy) super @type = :cell_radio @proxy = proxy end |
Instance Attribute Details
#proxy ⇒ Object
Returns the value of attribute proxy.
3 4 5 |
# File 'lib/testcentricity_web/elements/cell_radio.rb', line 3 def proxy @proxy end |
Instance Method Details
#select(row) ⇒ Object
23 24 25 |
# File 'lib/testcentricity_web/elements/cell_radio.rb', line 23 def select(row) set_selected_state(row, true) end |
#selected?(row) ⇒ Boolean
11 12 13 14 15 |
# 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) ⇒ Object
17 18 19 20 21 |
# 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) ⇒ Object
27 28 29 |
# File 'lib/testcentricity_web/elements/cell_radio.rb', line 27 def unselect(row) set_selected_state(row, false) end |