Class: FunFX::Flex::Elements::FlexObject

Inherits:
FlexDisplayObject show all
Defined in:
lib/funfx/flex/elements.rb

Constant Summary

Constants inherited from FunFX::Flex::Element

FunFX::Flex::Element::MAX_TRIES

Instance Attribute Summary

Attributes inherited from FunFX::Flex::Element

#flex_app, #flex_locator

Instance Method Summary collapse

Methods inherited from FlexDisplayObject

#alpha, #click, #height, #mouse_enabled?, #mouse_move, #tab_children?, #tab_enabled?, #tab_index, #visible?, #width, #x, #y

Methods inherited from FunFX::Flex::Element

#fire_event, #flex_invoke, #get_property_value, #get_tabular_property_value, #initialize, #invoke_tabular_method, #label_element, #raise_if_funfx_error, #shift_case

Constructor Details

This class inherits a constructor from FunFX::Flex::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FunFX::Flex::Element

Instance Method Details

#automation_class_nameObject



133
134
135
# File 'lib/funfx/flex/elements.rb', line 133

def automation_class_name
  get_property_value('automationClassName', String)
end

#automation_indexObject



145
146
147
# File 'lib/funfx/flex/elements.rb', line 145

def automation_index
  get_property_value('automationIndex', String)
end

#automation_nameObject



129
130
131
# File 'lib/funfx/flex/elements.rb', line 129

def automation_name
  get_property_value('automationName', String)
end

#change_focus(shift_key, key_code = "TAB") ⇒ Object



200
201
202
# File 'lib/funfx/flex/elements.rb', line 200

def change_focus(shift_key, key_code="TAB")
  fire_event('ChangeFocus', shift_key, key_code)
end

#class_nameObject



141
142
143
# File 'lib/funfx/flex/elements.rb', line 141

def class_name
  get_property_value('className', String)
end

#current_stateObject



149
150
151
# File 'lib/funfx/flex/elements.rb', line 149

def current_state
  get_property_value('currentState', String)
end

#enabled?Boolean

Returns:

  • (Boolean)


189
190
191
# File 'lib/funfx/flex/elements.rb', line 189

def enabled?
  get_property_value('enabled', TrueClass)
end

#error_colorObject



181
182
183
# File 'lib/funfx/flex/elements.rb', line 181

def error_color
  get_property_value('errorColor', String)
end

#error_stringObject



161
162
163
# File 'lib/funfx/flex/elements.rb', line 161

def error_string
  get_property_value('errorString', String)
end

#focus_enabled?Boolean

Returns:

  • (Boolean)


153
154
155
# File 'lib/funfx/flex/elements.rb', line 153

def focus_enabled?
  get_property_value('focusEnabled', TrueClass)
end

#idObject



137
138
139
# File 'lib/funfx/flex/elements.rb', line 137

def id
  get_property_value('id', String)
end

#num_automation_childrenObject



197
198
199
# File 'lib/funfx/flex/elements.rb', line 197

def num_automation_children
  get_property_value('numAutomationChildren', Integer)
end

#percent_heightObject



165
166
167
# File 'lib/funfx/flex/elements.rb', line 165

def percent_height
  get_property_value('percentHeight', Integer)
end

#percent_widthObject



169
170
171
# File 'lib/funfx/flex/elements.rb', line 169

def percent_width
  get_property_value('percentWidth', Integer)
end

#scale_xObject



173
174
175
# File 'lib/funfx/flex/elements.rb', line 173

def scale_x
  get_property_value('scaleX', Integer)
end

#scale_yObject



177
178
179
# File 'lib/funfx/flex/elements.rb', line 177

def scale_y
  get_property_value('scaleY', Integer)
end

#theme_colorObject



185
186
187
# File 'lib/funfx/flex/elements.rb', line 185

def theme_color
  get_property_value('themeColor', String)
end

#tool_tipObject



157
158
159
# File 'lib/funfx/flex/elements.rb', line 157

def tool_tip
  get_property_value('toolTip', String)
end

#use_hand_cursor?Boolean

Returns:

  • (Boolean)


193
194
195
# File 'lib/funfx/flex/elements.rb', line 193

def use_hand_cursor?
  get_property_value('useHandCursor', TrueClass)
end