Class: JQueryUIWidgets::BasicDialog
- Inherits:
-
PageObject::Elements::Div
- Object
- PageObject::Elements::Div
- JQueryUIWidgets::BasicDialog
- Defined in:
- lib/jqueryui_widgets/basic_dialog.rb
Overview
Basic Dialog allows JQuery UI Widgets to interact with the basic dialogs that JQueryUI pops up.
Instance Method Summary collapse
-
#close ⇒ Object
Close function will, of course, click the button labeled close.
-
#content ⇒ Object
Content function will return the entire text of the JQuery UI dialog box.
-
#title ⇒ Object
The title function grabs the span element of the title bar in the UI dialog and returns the text.
Instance Method Details
#close ⇒ Object
Close function will, of course, click the button labeled close.
28 29 30 |
# File 'lib/jqueryui_widgets/basic_dialog.rb', line 28 def close (:class => 'ui-dialog-titlebar-close').click end |
#content ⇒ Object
Content function will return the entire text of the JQuery UI dialog box.
20 21 22 |
# File 'lib/jqueryui_widgets/basic_dialog.rb', line 20 def content div_element(:class => 'ui-dialog-content').text end |
#title ⇒ Object
The title function grabs the span element of the title bar in the UI dialog and returns the text.
12 13 14 |
# File 'lib/jqueryui_widgets/basic_dialog.rb', line 12 def title div_element(:class => 'ui-dialog-titlebar').span_element.text end |