Class: Lebowski::Foundation::Views::Support::RadioViewItemArray

Inherits:
SimpleItemArray
  • Object
show all
Defined in:
lib/lebowski/foundation/views/radio.rb

Constant Summary collapse

SELECTOR =
'.sc-radio-button'

Constants included from Lebowski::Foundation

SC_BRANCH_CLOSED, SC_BRANCH_OPEN, SC_LEAF_NODE, SC_MIXED_STATE, SC_PICKER_FIXED, SC_PICKER_MENU, SC_PICKER_POINTER, SC_T_ARRAY, SC_T_BOOL, SC_T_CLASS, SC_T_ERROR, SC_T_FUNCTION, SC_T_HASH, SC_T_NULL, SC_T_NUMBER, SC_T_OBJECT, SC_T_STRING, SC_T_UNDEFINED

Instance Method Summary collapse

Methods inherited from SimpleItemArray

#[], #all?, #all_selected?, #any?, #any_selected?, #click, #click_with_title, #count, #each, #find_index_with_title, #initialize, #none?, #none_selected?, #one?, #one_selected?, #select, #select_with_index, #select_with_title, #selected?, #selected_count, #selected_with_index?, #selected_with_title?

Constructor Details

This class inherits a constructor from Lebowski::Foundation::Views::Support::SimpleItemArray

Instance Method Details

#click_with_index(value) ⇒ Object



41
42
43
44
45
46
47
48
49
# File 'lib/lebowski/foundation/views/radio.rb', line 41

def click_with_index(value)
  cq = @parent.core_query(SELECTOR)
  cq[value].mouse_down
  cq.done
  
  cq = @parent.core_query(SELECTOR)
  cq[value].mouse_up
  cq.done
end