Class: FunFX::Flex::Elements::FlexLabel

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

Direct Known Subclasses

FlexText

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 FlexObject

#automation_class_name, #automation_index, #automation_name, #change_focus, #class_name, #current_state, #enabled?, #error_color, #error_string, #focus_enabled?, #id, #num_automation_children, #percent_height, #percent_width, #scale_x, #scale_y, #theme_color, #tool_tip, #use_hand_cursor?

Methods inherited from FlexDisplayObject

#alpha, #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

#click(ctrl_key, alt_key, shift_key) ⇒ Object



346
347
348
# File 'lib/funfx/flex/elements.rb', line 346

def click(ctrl_key, alt_key, shift_key)
  fire_event('Click', ctrl_key, alt_key, shift_key)
end

#colorObject



311
312
313
# File 'lib/funfx/flex/elements.rb', line 311

def color
  get_property_value('color', String)
end

#disabled_colorObject



315
316
317
# File 'lib/funfx/flex/elements.rb', line 315

def disabled_color
  get_property_value('disabledColor', String)
end

#font_familyObject



319
320
321
# File 'lib/funfx/flex/elements.rb', line 319

def font_family
  get_property_value('fontFamily', String)
end

#font_sizeObject



323
324
325
# File 'lib/funfx/flex/elements.rb', line 323

def font_size
  get_property_value('fontSize', Integer)
end

#font_styleObject



327
328
329
# File 'lib/funfx/flex/elements.rb', line 327

def font_style
  get_property_value('fontStyle', String)
end

#font_weightObject



331
332
333
# File 'lib/funfx/flex/elements.rb', line 331

def font_weight
  get_property_value('fontWeight', String)
end

#html_textObject



307
308
309
# File 'lib/funfx/flex/elements.rb', line 307

def html_text
  get_property_value('htmlText', String)
end

#textObject



303
304
305
# File 'lib/funfx/flex/elements.rb', line 303

def text
  get_property_value('text', String)
end

#text_alignObject



335
336
337
# File 'lib/funfx/flex/elements.rb', line 335

def text_align
  get_property_value('textAlign', String)
end

#text_decorationObject



339
340
341
# File 'lib/funfx/flex/elements.rb', line 339

def text_decoration
  get_property_value('textDecoration', String)
end

#text_indentObject



343
344
345
# File 'lib/funfx/flex/elements.rb', line 343

def text_indent
  get_property_value('textIndent', Integer)
end