Sha256: 88c5fbb0b5374a4d852ea6191418d6700126e36ab729585a00f0c885ea53e202

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

class JQueryUIWidgets::Tabs < PageObject::Elements::UnorderedList

  def select(label)
    link_element(:text => label).click
  end

  def selected
    list_item_element(:class => 'ui-tabs-active').link_element.text
  end

  def labels
    link_elements(:class => 'ui-tabs-anchor').map(&:text)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jqueryui_widgets-0.4 lib/jqueryui_widgets/tabs.rb
jqueryui_widgets-0.3 lib/jqueryui_widgets/tabs.rb