Class: GwtWidgets::TabPanel

Inherits:
PageObject::Elements::Div
  • Object
show all
Defined in:
lib/gwt_widgets/tab_panel.rb

Instance Method Summary collapse

Instance Method Details

#labelsObject



11
12
13
# File 'lib/gwt_widgets/tab_panel.rb', line 11

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

#select(label) ⇒ Object



3
4
5
# File 'lib/gwt_widgets/tab_panel.rb', line 3

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

#selectedObject



7
8
9
# File 'lib/gwt_widgets/tab_panel.rb', line 7

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