Search in sources :

Example 76 with PublicAtsApi

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();
}
Also used : JPopupMenuFixture(org.fest.swing.fixture.JPopupMenuFixture) JListFixture(org.fest.swing.fixture.JListFixture) SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 77 with PublicAtsApi

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);
}
Also used : SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 78 with PublicAtsApi

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());
}
Also used : SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 79 with PublicAtsApi

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));
}
Also used : ComponentDragAndDrop(org.fest.swing.core.ComponentDragAndDrop) SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 80 with PublicAtsApi

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());
}
Also used : SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Aggregations

PublicAtsApi (com.axway.ats.common.PublicAtsApi)409 Validator (com.axway.ats.core.validation.Validator)66 SwingElementState (com.axway.ats.uiengine.utilities.swing.SwingElementState)60 WebElement (org.openqa.selenium.WebElement)57 IFileSystemOperations (com.axway.ats.core.filesystem.model.IFileSystemOperations)44 HiddenHtmlElementState (com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState)32 NoSuchMimePackageException (com.axway.ats.action.objects.model.NoSuchMimePackageException)31 PackageException (com.axway.ats.action.objects.model.PackageException)31 RealHtmlElementState (com.axway.ats.uiengine.utilities.realbrowser.html.RealHtmlElementState)31 MessagingException (javax.mail.MessagingException)31 VerificationException (com.axway.ats.uiengine.exceptions.VerificationException)24 ArrayList (java.util.ArrayList)18 SeleniumOperationException (com.axway.ats.uiengine.exceptions.SeleniumOperationException)16 UiElementException (com.axway.ats.uiengine.exceptions.UiElementException)16 IOException (java.io.IOException)16 JTableFixture (org.fest.swing.fixture.JTableFixture)16 Actions (org.openqa.selenium.interactions.Actions)16 NotSupportedOperationException (com.axway.ats.uiengine.exceptions.NotSupportedOperationException)15 VerifyNotEqualityException (com.axway.ats.uiengine.exceptions.VerifyNotEqualityException)15 XMLException (com.axway.ats.common.xml.XMLException)14