Search in sources :

Example 1 with SelectSdkDialogFixture

use of com.intellij.testGuiFramework.fixtures.SelectSdkDialogFixture in project intellij-community by JetBrains.

the class NewProjectWizardFixture method selectSdkPath.

public NewProjectWizardFixture selectSdkPath(@NotNull File sdkPath, String sdkType) {
    final SelectSdkDialogFixture sdkDialogFixture = SelectSdkDialogFixture.find(robot(), sdkType);
    sdkDialogFixture.selectPathToSdk(sdkPath).clickOk();
    pause(new Condition("Waiting for the returning of focus to dialog: " + target().getTitle()) {

        @Override
        public boolean test() {
            return target().isFocused();
        }
    }, GuiTestUtil.SHORT_TIMEOUT);
    return this;
}
Also used : Condition(org.fest.swing.timing.Condition) SelectSdkDialogFixture(com.intellij.testGuiFramework.fixtures.SelectSdkDialogFixture)

Aggregations

SelectSdkDialogFixture (com.intellij.testGuiFramework.fixtures.SelectSdkDialogFixture)1 Condition (org.fest.swing.timing.Condition)1