Search in sources :

Example 11 with JButtonFixture

use of org.fest.swing.fixture.JButtonFixture in project android by JetBrains.

the class NlConfigurationToolbarFixture method chooseDevice.

/**
   * Selects a device matching the given label prefix in the configuration toolbar's device menu
   */
public void chooseDevice(@NotNull String label) {
    new JButtonFixture(myRobot, findToolbarButton("Device in Editor")).click();
    clickPopupMenuItemMatching(new DeviceNamePredicate(label), myToolBar.getComponent(), myRobot);
}
Also used : JButtonFixture(org.fest.swing.fixture.JButtonFixture)

Example 12 with JButtonFixture

use of org.fest.swing.fixture.JButtonFixture in project android by JetBrains.

the class AvdManagerDialogFixture method createNew.

public AvdEditWizardFixture createNew() {
    JButton newAvdButton = findButtonByText("Create Virtual Device...");
    final JButtonFixture button = new JButtonFixture(robot(), newAvdButton);
    button.requireEnabled();
    button.requireVisible();
    button.click();
    return AvdEditWizardFixture.find(robot());
}
Also used : JButtonFixture(org.fest.swing.fixture.JButtonFixture)

Aggregations

JButtonFixture (org.fest.swing.fixture.JButtonFixture)12 Test (org.junit.Test)4 EditorFixture (com.android.tools.idea.tests.gui.framework.fixture.EditorFixture)3 DialogFixture (org.fest.swing.fixture.DialogFixture)3 Ignore (org.junit.Ignore)3 NlComponentFixture (com.android.tools.idea.tests.gui.framework.fixture.layout.NlComponentFixture)2 NlEditorFixture (com.android.tools.idea.tests.gui.framework.fixture.layout.NlEditorFixture)2 BasicRobot (org.fest.swing.core.BasicRobot)2 Robot (org.fest.swing.core.Robot)2 JLabelFixture (org.fest.swing.fixture.JLabelFixture)2 NewXmlValueWizardFixture (com.android.tools.idea.tests.gui.framework.fixture.npw.NewXmlValueWizardFixture)1 PublicAtsApi (com.axway.ats.common.PublicAtsApi)1 ElementNotFoundException (com.axway.ats.uiengine.exceptions.ElementNotFoundException)1 SwingDriverInternal (com.axway.ats.uiengine.internal.driver.SwingDriverInternal)1 SwingElementState (com.axway.ats.uiengine.utilities.swing.SwingElementState)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 Component (java.awt.Component)1 JButton (javax.swing.JButton)1 JCheckBox (javax.swing.JCheckBox)1 JComboBox (javax.swing.JComboBox)1