Sha256: a3f156320d5c318e7a1686a0ec5b595ae2b8ad687ce8fca08fbad95f032a483f

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

class GwtWidgets::TabPanel < PageObject::Elements::Div

  def select(label)
    div_element(:class => 'gwt-Label', :text => label).click
  end

  def selected
    div_element(:class => 'gwt-TabLayoutPanelTab-selected').text
  end

  def labels
    div_elements(:class => 'gwt-Label').map(&:text)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gwt_widgets-0.0.7 lib/gwt_widgets/tab_panel.rb
gwt_widgets-0.0.6 lib/gwt_widgets/tab_panel.rb