use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingMultiSelectList method rightClick.
/**
*
* @param contextMenuItems context menu items to select
*/
@PublicAtsApi
public void rightClick(String... contextMenuItems) {
new SwingElementState(this).waitToBecomeExisting();
JListFixture listFixture = ((JListFixture) SwingElementLocator.findFixture(this));
JPopupMenuFixture popUpMenu = listFixture.showPopupMenu();
popUpMenu.menuItemWithPath(contextMenuItems).click();
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingComponent method focus.
/**
* Focusing the GUI component.
*
*/
@PublicAtsApi
public void focus() {
new SwingElementState(this).waitToBecomeExisting();
ComponentFixture<? extends Component> componentFixture = SwingElementLocator.findFixture(this);
componentFixture.robot.focus(componentFixture.target);
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingComponent method click.
/**
* Simulates a user click over the GUI component.
*
*/
@PublicAtsApi
public void click() {
new SwingElementState(this).waitToBecomeExisting();
click(MouseClickInfo.leftButton());
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingComponent method drop.
/**
* Simulates a user dropping to this component
*
*/
@PublicAtsApi
public void drop() {
new SwingElementState(this).waitToBecomeExisting();
ComponentFixture<? extends Component> componentFixture = SwingElementLocator.findFixture(this);
ComponentDragAndDrop componentDragAndDrop = new ComponentDragAndDrop(componentFixture.robot);
componentDragAndDrop.drop(componentFixture.target, getComponentCenterLocation(componentFixture.target));
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingComponent method rightClick.
/**
* Simulates a user right click over the GUI component.
*
*/
@PublicAtsApi
public void rightClick() {
new SwingElementState(this).waitToBecomeExisting();
click(MouseClickInfo.rightButton());
}
Aggregations