Module: OperaWatir::DesktopContainer
- Included in:
- DesktopBrowser, QuickWidget, QuickWindow
- Defined in:
- lib/operawatir/desktop_container.rb
Instance Method Summary collapse
-
#quick_addressfield(how, what) ⇒ Object
Method for accessing an addressfield object.
-
#quick_button(how, what) ⇒ Object
Method for accessing a button element.
-
#quick_checkbox(how, what) ⇒ Object
Method for accessing a checkbox element.
-
#quick_dialogtab(how, what) ⇒ Object
Method for accessing a tab on a tabbed dialog.
-
#quick_dropdown(how, what) ⇒ Object
Method for accessing a combobox (i.e. dropdown) element.
-
#quick_dropdownitem(how, what) ⇒ Object
Method for accessing a combobox (i.e. dropdown) element.
-
#quick_editfield(how, what) ⇒ Object
Method for accessing an edit or multiedit element.
-
#quick_find(how, what) ⇒ Object
Method for accessing a quickfind element.
-
#quick_griditem(how, what) ⇒ Object
Method for accessing a grid item in a gridlayout.
-
#quick_gridlayout(how, what) ⇒ Object
Method for accessing a grid layout (A grid layout would normally be used to specify the path to a child item in one of its cells..
-
#quick_label(how, what) ⇒ Object
Method for accessing a label element.
-
#quick_menu(how, what) ⇒ Object
Method for accessing a menu.
-
#quick_menuitem(how, what) ⇒ Object
Method for accessing a menuitem.
-
#quick_radiobutton(how, what) ⇒ Object
Method for accessing a radio button element.
-
#quick_searchfield(how, what) ⇒ Object
Method for accessing a searchfield element.
-
#quick_tab(how, what) ⇒ Object
Method for accessing a tab button element.
-
#quick_thumbnail(how, what) ⇒ Object
Method for accessing a thumbnail (speeddial, thumbnail when hovering tab groups).
-
#quick_toolbar(how, what) ⇒ Object
Method for accessing a toolbar element.
-
#quick_treeitem(how, what) ⇒ Object
Method for accessing a tree item in a treeview.
-
#quick_treeview(how, what) ⇒ Object
Method for accessing a tree view element.
-
#quick_window(how, what) ⇒ Object
Method for accessing a window.
Instance Method Details
#quick_addressfield(how, what) ⇒ Object
Method for accessing an addressfield object
195 196 197 |
# File 'lib/operawatir/desktop_container.rb', line 195 def quick_addressfield(how, what) QuickAddressField.new(self, how, what, , window_id, :addressfield) end |
#quick_button(how, what) ⇒ Object
Method for accessing a button element
16 17 18 19 20 21 22 23 24 |
# File 'lib/operawatir/desktop_container.rb', line 16 def (how, what) what = [0, what] if how == :pos && (what.is_a? Fixnum) #if how == :pos # if what.is_a? Fixnum # what = [0, what] # end #end QuickButton.new(self, how, what, , window_id, :button) end |
#quick_checkbox(how, what) ⇒ Object
Method for accessing a checkbox element
59 60 61 |
# File 'lib/operawatir/desktop_container.rb', line 59 def quick_checkbox(how, what) QuickCheckbox.new(self, how, what, , window_id, :checkbox) end |
#quick_dialogtab(how, what) ⇒ Object
Method for accessing a tab on a tabbed dialog
74 75 76 |
# File 'lib/operawatir/desktop_container.rb', line 74 def quick_dialogtab(how, what) QuickDialogTab.new(self, how, what, , window_id, :dialogtab) end |
#quick_dropdown(how, what) ⇒ Object
Method for accessing a combobox (i.e. dropdown) element
89 90 91 |
# File 'lib/operawatir/desktop_container.rb', line 89 def quick_dropdown(how, what) QuickDropdown.new(self, how, what, , window_id, :dropdown) end |
#quick_dropdownitem(how, what) ⇒ Object
Method for accessing a combobox (i.e. dropdown) element
104 105 106 |
# File 'lib/operawatir/desktop_container.rb', line 104 def quick_dropdownitem(how, what) QuickDropdownItem.new(self, how, what, , window_id, :dropdownitem) end |
#quick_editfield(how, what) ⇒ Object
Method for accessing an edit or multiedit element
135 136 137 |
# File 'lib/operawatir/desktop_container.rb', line 135 def quick_editfield(how, what) QuickEditField.new(self, how, what, , window_id, :editfield) end |
#quick_find(how, what) ⇒ Object
Method for accessing a quickfind element
120 121 122 |
# File 'lib/operawatir/desktop_container.rb', line 120 def quick_find(how, what) QuickFind.new(self, how, what, , window_id, :quickfind) end |
#quick_griditem(how, what) ⇒ Object
Method for accessing a grid item in a gridlayout
257 258 259 |
# File 'lib/operawatir/desktop_container.rb', line 257 def quick_griditem(how, what) QuickGridItem.new(self, how, what, , window_id, :griditem) end |
#quick_gridlayout(how, what) ⇒ Object
Method for accessing a grid layout (A grid layout would normally be used to specify the path to a child item in one of its cells.
274 275 276 |
# File 'lib/operawatir/desktop_container.rb', line 274 def quick_gridlayout(how, what) QuickGridLayout.new(self, how, what, , window_id, :gridlayout) end |
#quick_label(how, what) ⇒ Object
Method for accessing a label element
150 151 152 |
# File 'lib/operawatir/desktop_container.rb', line 150 def quick_label(how, what) QuickLabel.new(self, how, what, , window_id, :label) end |
#quick_menu(how, what) ⇒ Object
Method for accessing a menu
329 330 331 332 333 334 335 |
# File 'lib/operawatir/desktop_container.rb', line 329 def (how, what) if mac_internal? QuickMenu.new(self, how, what, nil) else QuickMenu.new(self, how, what, window_id) end end |
#quick_menuitem(how, what) ⇒ Object
Method for accessing a menuitem
An acckey and pos are unique only within a given , so in this case
the accesspath to specify the item should include the
Note that only methods that identify a unique item gives a predictable result
364 365 366 367 368 369 370 |
# File 'lib/operawatir/desktop_container.rb', line 364 def (how, what) if mac_internal? || (window_id != nil && window_id <= 0) QuickMenuItem.new(self, how, what, name == 'Opera' ? nil : name) else QuickMenuItem.new(self, how, what, window_id) end end |
#quick_radiobutton(how, what) ⇒ Object
Method for accessing a radio button element
165 166 167 |
# File 'lib/operawatir/desktop_container.rb', line 165 def (how, what) QuickRadioButton.new(self, how, what, , window_id, :radiobutton) end |
#quick_searchfield(how, what) ⇒ Object
Method for accessing a searchfield element
210 211 212 |
# File 'lib/operawatir/desktop_container.rb', line 210 def quick_searchfield(how, what) QuickSearchField.new(self, how, what, , window_id, :search) end |
#quick_tab(how, what) ⇒ Object
Method for accessing a tab button element
39 40 41 42 43 44 45 46 |
# File 'lib/operawatir/desktop_container.rb', line 39 def quick_tab(how, what) if how == :pos if what.is_a? Fixnum what = [0, what] end end QuickTab.new(self, how, what, , window_id, :tabbutton) end |
#quick_thumbnail(how, what) ⇒ Object
Method for accessing a thumbnail (speeddial, thumbnail when hovering tab groups)
292 293 294 295 296 297 298 299 |
# File 'lib/operawatir/desktop_container.rb', line 292 def quick_thumbnail(how, what) if how == :pos if what.is_a? Fixnum what = [0, what] end end QuickThumbnail.new(self, how, what, , window_id, :thumbnail) end |
#quick_toolbar(how, what) ⇒ Object
Method for accessing a toolbar element
225 226 227 |
# File 'lib/operawatir/desktop_container.rb', line 225 def (how, what) .new(self, how, what, , window_id, :toolbar) end |
#quick_treeitem(how, what) ⇒ Object
Method for accessing a tree item in a treeview
241 242 243 |
# File 'lib/operawatir/desktop_container.rb', line 241 def quick_treeitem(how, what) QuickTreeItem.new(self, how, what, , window_id, :treeitem) end |
#quick_treeview(how, what) ⇒ Object
Method for accessing a tree view element
180 181 182 |
# File 'lib/operawatir/desktop_container.rb', line 180 def quick_treeview(how, what) QuickTreeView.new(self, how, what, , window_id, :treeview) end |
#quick_window(how, what) ⇒ Object
Method for accessing a window
316 317 318 |
# File 'lib/operawatir/desktop_container.rb', line 316 def quick_window(how, what) QuickWindow.new(self, how, what) end |