use of org.eclipse.reddeer.swt.impl.button.NoButton in project jbosstools-openshift by jbosstools.
the class OpenShiftUtils method handleCheatSheetCreateServerAdapter.
public static void handleCheatSheetCreateServerAdapter() {
try {
new WaitUntil(new ShellIsAvailable(new WithTextMatcher(new RegexMatcher(OpenShiftLabel.Shell.CHEATSHEET + "|" + OpenShiftLabel.Shell.CREATE_SERVER_ADAPTER))), TimePeriod.LONG);
new NoButton().click();
new DefaultShell("Create server adapter");
new NoButton().click();
} catch (CoreLayerException ex) {
// Swallow, shells are not opened
} catch (WaitTimeoutExpiredException e) {
// Also swallow, shells are not opened
}
}
use of org.eclipse.reddeer.swt.impl.button.NoButton in project jbosstools-openshift by jbosstools.
the class SecureStorage method handleSecureStoragePasswordAndHint.
public static void handleSecureStoragePasswordAndHint(String secureStoragePassword) {
boolean firstStorage = provideSecureStoragePassword(secureStoragePassword);
if (firstStorage) {
// Did "Password hint needed" shell appear? Get rid of it.
try {
new DefaultShell(OpenShiftLabel.Shell.PASSWORD_HINT_NEEDED);
new NoButton().click();
} catch (CoreLayerException ex) {
// do nothing
LOGGER.debug("Password hint did not appear. Skipping.");
}
}
}
use of org.eclipse.reddeer.swt.impl.button.NoButton in project jbosstools-openshift by jbosstools.
the class TemplatesCreator method executeImport.
private void executeImport(boolean importProject) {
new DefaultShell(OpenShiftLabel.Shell.IMPORT_APPLICATION);
if (!importProject) {
new CancelButton().click();
} else {
new FinishButton().click();
try {
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.CHEATSHEET), TimePeriod.LONG);
new DefaultShell(OpenShiftLabel.Shell.CHEATSHEET);
new CheckBox(0).click();
new NoButton().click();
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.CHEATSHEET));
} catch (WaitTimeoutExpiredException ex) {
// do nothing if cheat sheet is not provided
}
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);
}
}
Aggregations