use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingToggleButton method click.
/**
* Click the button
*
* @throws VerificationException if the element doesn't exist
*/
@PublicAtsApi
public void click() {
new SwingElementState(this).waitToBecomeExisting();
((JToggleButtonFixture) SwingElementLocator.findFixture(this)).click();
}
use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTree method click.
@PublicAtsApi
public void click(int rowIndex) {
new SwingElementState(this).waitToBecomeExisting();
((JTreeFixture) SwingElementLocator.findFixture(this)).clickRow(rowIndex);
}
use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTree method select.
/**
* Select tree elements by labels
*
* @param labels the tree element labels
* @throws VerificationException if the tree element doesn't exist
*/
@Override
@PublicAtsApi
public void select(String... labels) {
new SwingElementState(this).waitToBecomeExisting();
JTreeFixture treeFixture = (JTreeFixture) SwingElementLocator.findFixture(this);
// sometimes it is necessary
expandTree(treeFixture, labels);
treeFixture.selectPath(buildPath(labels));
}
use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTree method rightClick.
@PublicAtsApi
public void rightClick(int rowIndex, String... contextMenuItems) {
new SwingElementState(this).waitToBecomeExisting();
JTreeFixture treeFixture = (JTreeFixture) SwingElementLocator.findFixture(this);
JPopupMenuFixture popUpMenu = treeFixture.showPopupMenuAt(rowIndex);
popUpMenu.menuItemWithPath(contextMenuItems).click();
}
use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.
the class SwingTree method rightClick.
@PublicAtsApi
public void rightClick(String[] path, String... contextMenuItems) {
new SwingElementState(this).waitToBecomeExisting();
JTreeFixture treeFixture = (JTreeFixture) SwingElementLocator.findFixture(this);
// sometimes it is necessary
expandTree(treeFixture, path);
JPopupMenuFixture popUpMenu = treeFixture.showPopupMenuAt(buildPath(path));
popUpMenu.menuItemWithPath(contextMenuItems).click();
}
Aggregations