Sha256: 989eebd27196441433608f5d99b2a8fc733455ab80c3b0a33f0ecbe3da22f7fa

Contents?: true

Size: 696 Bytes

Versions: 2

Compression:

Stored size: 696 Bytes

Contents

#
# Basic Dialog allows JQuery UI Widgets to interact
# with the basic dialogs that JQueryUI pops up.
#
class JQueryUIWidgets::BasicDialog < PageObject::Elements::Div

  #
  # The title function grabs the span element of the title
  # bar in the UI dialog and returns the text.
  #
  def title
    div_element(:class => 'ui-dialog-titlebar').span_element.text
  end

  #
  # Content function will return the entire text of
  # the JQuery UI dialog box.
  #
  def content
    div_element(:class => 'ui-dialog-content').text
  end

  #
  # Close function will, of course, click the button
  # labeled close.
  #
  def close
    button_element(:class => 'ui-dialog-titlebar-close').click
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jqueryui_widgets-0.5 lib/jqueryui_widgets/basic_dialog.rb
jqueryui_widgets-0.4 lib/jqueryui_widgets/basic_dialog.rb