Search in sources :

Example 31 with SwingElementState

use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.

the class SwingCheckBox method unCheck.

/**
 * Uncheck the CheckBox
 * @throws VerificationException if the element doesn't exist
 */
@Override
@PublicAtsApi
public void unCheck() {
    new SwingElementState(this).waitToBecomeExisting();
    ((JCheckBoxFixture) SwingElementLocator.findFixture(this)).uncheck();
}
Also used : SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) JCheckBoxFixture(org.fest.swing.fixture.JCheckBoxFixture) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 32 with SwingElementState

use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.

the class SwingCheckBox method check.

/**
 * Check the CheckBox
 * @throws VerificationException if the element doesn't exist
 */
@Override
@PublicAtsApi
public void check() {
    new SwingElementState(this).waitToBecomeExisting();
    ((JCheckBoxFixture) SwingElementLocator.findFixture(this)).check();
}
Also used : SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) JCheckBoxFixture(org.fest.swing.fixture.JCheckBoxFixture) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 33 with SwingElementState

use of com.axway.ats.uiengine.utilities.swing.SwingElementState in project ats-framework by Axway.

the class SwingComponent method doubleClick.

/**
 * Simulates a user double click over the GUI component.
 */
@PublicAtsApi
public void doubleClick() {
    new SwingElementState(this).waitToBecomeExisting();
    click(MouseClickInfo.leftButton().times(2));
}
Also used : SwingElementState(com.axway.ats.uiengine.utilities.swing.SwingElementState) PublicAtsApi(com.axway.ats.common.PublicAtsApi)

Example 34 with SwingElementState

use of com.axway.ats.uiengine.utilities.swing.SwingElementState 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 35 with SwingElementState

use of com.axway.ats.uiengine.utilities.swing.SwingElementState 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)60 SwingElementState (com.axway.ats.uiengine.utilities.swing.SwingElementState)60 UiElementException (com.axway.ats.uiengine.exceptions.UiElementException)16 JTableFixture (org.fest.swing.fixture.JTableFixture)16 VerificationException (com.axway.ats.uiengine.exceptions.VerificationException)12 TableCell (org.fest.swing.data.TableCell)12 NotSupportedOperationException (com.axway.ats.uiengine.exceptions.NotSupportedOperationException)11 VerifyNotEqualityException (com.axway.ats.uiengine.exceptions.VerifyNotEqualityException)11 VerifyEqualityException (com.axway.ats.uiengine.exceptions.VerifyEqualityException)10 JTreeFixture (org.fest.swing.fixture.JTreeFixture)8 JListFixture (org.fest.swing.fixture.JListFixture)7 JPopupMenuFixture (org.fest.swing.fixture.JPopupMenuFixture)5 JSpinnerFixture (org.fest.swing.fixture.JSpinnerFixture)4 ArrayList (java.util.ArrayList)2 ComponentDragAndDrop (org.fest.swing.core.ComponentDragAndDrop)2 JCheckBoxFixture (org.fest.swing.fixture.JCheckBoxFixture)2 JFileChooserFixture (org.fest.swing.fixture.JFileChooserFixture)2 JMenuItemFixture (org.fest.swing.fixture.JMenuItemFixture)2 JTabbedPaneFixture (org.fest.swing.fixture.JTabbedPaneFixture)2 JTableHeaderFixture (org.fest.swing.fixture.JTableHeaderFixture)2