Class SwingTabbedPane
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.swing.SwingTabbedPane
-
public class SwingTabbedPane extends UiElement
A Swing TabbedPaneCan be identified by:
- name
- label
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description SwingTabbedPane(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfTabs()String[]getTabTitles()voidselectTab(int index)Select tab by indexvoidselectTab(String title)Select tab by titlevoidselectTabByRegex(String regex)Select tab by regular expressionvoidselectTabUsingSubElement(UiElementProperties elementProperties)Select tab by title using sub-element properties.voidselectTabUsingSubElement(String mapId)Select tab by title using SubElement described in the map file.-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
SwingTabbedPane
public SwingTabbedPane(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
selectTab
public void selectTab(int index)
Select tab by index- Parameters:
index- the tab index to select- Throws:
VerificationException- if the element doesn't exist
-
selectTab
public void selectTab(String title)
Select tab by title- Parameters:
title- the tab title to select- Throws:
VerificationException- if the element doesn't exist
-
selectTabByRegex
public void selectTabByRegex(String regex)
Select tab by regular expression- Parameters:
regex- the tab title regular expression- Throws:
VerificationException- if the element doesn't exist
-
selectTabUsingSubElement
public void selectTabUsingSubElement(UiElementProperties elementProperties)
Select tab by title using sub-element properties. The required property is 'title'- Parameters:
elementProperties- the sub-elementUiElementPropertieswhich contains property 'title'- Throws:
VerificationException- if the table element doesn't exist
-
selectTabUsingSubElement
public void selectTabUsingSubElement(String mapId)
Select tab by title using SubElement described in the map file. The required property is 'title'- Parameters:
mapId- the sub-element mapID. This element must have property 'title'- Throws:
VerificationException- if the table element doesn't exist
-
getNumberOfTabs
public int getNumberOfTabs()
- Returns:
- the number of tabs in the TabbedPane
- Throws:
VerificationException- if the element doesn't exist
-
getTabTitles
public String[] getTabTitles()
- Returns:
- the titles of all tabs in natural order
- Throws:
VerificationException- if the element doesn't exist
-
-