Class: Watir::IE::FlexApp

Inherits:
Element
  • Object
show all
Includes:
FunFX::Flex::Elements, FunFX::Flex::FlexAppId
Defined in:
lib/funfx/browser/watir.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from FunFX::Flex::FlexAppId

#automation_id, #full_id

Methods included from FunFX::Flex::Elements

#accordion, #advanced_data_grid, #advanced_data_grid_base, #advanced_data_grid_base_ex, #advanced_list_base, #alert, #application, #area_chart, #area_series, #axis_renderer, #bar_chart, #bar_series, #box, #bubble_series, #button, #button_bar, #canvas, #cartesian_chart, #chart_base, #check_box, #color_picker, #column_chart, #column_series, #combo_base, #combo_box, #container, #data_grid, #data_grid_item_renderer, #date_chooser, #date_field, #display_object, #divided_box, #form, #form_item, #h_rule, #h_scroll_bar, #h_slider, #hloc_chart, #horizontal_list, #image, #label, #legend, #line_chart, #line_series, #link_bar, #list, #list_base, #list_item_renderer, #list_label, #menu, #menu_bar, #menu_bar_item, #menu_item_renderer, #nav_bar, #numeric_stepper, #object, #panel, #pie_chart, #pie_series, #plot_series, #pop_up_button, #pop_up_menu_button, #progress_bar, #radio_button, #repeater, #rule, #scroll_bar, #scroll_base, #scroll_control_base, #series, #slider, #swf_loader, #tab_bar, #tab_navigator, #text, #text_area, #text_input, #tile, #tile_list, #tile_list_item_renderer, #title_window, #toggle_button_bar, #tree, #tree_item_renderer, #v_rule, #v_scroll_bar, #v_slider, #video_display, #view_stack

Constructor Details

#initialize(ole_object, dom_id, app_name) ⇒ FlexApp

Returns a new instance of FlexApp.



17
18
19
20
21
22
# File 'lib/funfx/browser/watir.rb', line 17

def initialize(ole_object, dom_id, app_name)
  super(ole_object)
  @flex_object = ole_object.ie.Document.getElementsByName(dom_id).item(0)
  raise "Couldn't find Flex object with id #{dom_id.inspect}" if @flex_object.nil?
  @app_name = app_name
end

Instance Method Details

#fire_event(flex_locator, event_name, args) ⇒ Object

:nodoc:



24
25
26
# File 'lib/funfx/browser/watir.rb', line 24

def fire_event(flex_locator, event_name, args) # :nodoc:
  @flex_object.fireFunFXEvent(flex_locator, event_name, args)
end

#get_property_value(flex_locator, property) ⇒ Object

:nodoc:



28
29
30
# File 'lib/funfx/browser/watir.rb', line 28

def get_property_value(flex_locator, property) # :nodoc:
  @flex_object.getFunFXPropertyValue(flex_locator, property)
end

#get_tabular_property_value(flex_locator, property) ⇒ Object

:nodoc:



32
33
34
# File 'lib/funfx/browser/watir.rb', line 32

def get_tabular_property_value(flex_locator, property) # :nodoc:
  @flex_object.getFunFXTabularPropertyValue(flex_locator, property)
end

#invoke_tabular_method(flex_locator, method_name, *args) ⇒ Object

:nodoc:



36
37
38
# File 'lib/funfx/browser/watir.rb', line 36

def invoke_tabular_method(flex_locator, method_name, *args) # :nodoc:
  @flex_object.invokeFunFXTabularMethod(flex_locator, method_name, *args)
end