Class: Watir::Safari::FlexApp

Inherits:
HtmlElement
  • Object
show all
Includes:
FunFX::Flex::Elements, FunFX::Flex::FlexAppId
Defined in:
lib/funfx/browser/safariwatir.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(scripter, how, what, app_name) ⇒ FlexApp

Returns a new instance of FlexApp.



17
18
19
20
# File 'lib/funfx/browser/safariwatir.rb', line 17

def initialize(scripter, how, what, app_name)
  super(scripter, how, what)
  @id_prefix = "id{#{app_name} string}"
end

Instance Method Details

#fire_event(flex_locator, event_name, args) ⇒ Object

:nodoc:



22
23
24
# File 'lib/funfx/browser/safariwatir.rb', line 22

def fire_event(flex_locator, event_name, args) # :nodoc:
  eval_js %{return element.fireFunFXEvent(#{flex_locator}, #{event_name.inspect}, "#{args}")}
end

#get_property_value(flex_locator, property) ⇒ Object

:nodoc:



26
27
28
# File 'lib/funfx/browser/safariwatir.rb', line 26

def get_property_value(flex_locator, property) # :nodoc:
  eval_js %{return element.getFunFXPropertyValue(#{flex_locator}, #{property.inspect})}
end

#get_tabular_property_value(flex_locator, property) ⇒ Object

:nodoc:



30
31
32
# File 'lib/funfx/browser/safariwatir.rb', line 30

def get_tabular_property_value(flex_locator, property) # :nodoc:
  eval_js %{return element.getFunFXTabularPropertyValue(#{flex_locator}, #{property.inspect})}
end

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

:nodoc:



34
35
36
# File 'lib/funfx/browser/safariwatir.rb', line 34

def invoke_tabular_method(flex_locator, method_name, *args) # :nodoc:
  eval_js %{return element.invokeFunFXTabularMethod(#{flex_locator}, #{method_name.inspect}, #{args.map{|a| a.inspect}.join(', ')})}
end