use of org.fest.swing.fixture.JTreeFixture in project intellij-community by JetBrains.
the class SettingsTreeFixture method getTreeFixture.
public JTreeFixture getTreeFixture() {
JTreeFixture fixture = new JTreeFixture(robot(), target());
fixture.replaceCellReader(new SettingsTreeCellReader());
return fixture;
}
use of org.fest.swing.fixture.JTreeFixture 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 org.fest.swing.fixture.JTreeFixture 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 org.fest.swing.fixture.JTreeFixture 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 org.fest.swing.fixture.JTreeFixture 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