use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class ServerSettingsWizardPage method importProject.
public ImportApplicationWizard importProject() {
new DefaultShell(OpenShiftLabel.Shell.SERVER_ADAPTER_SETTINGS);
new PushButton("Import...").click();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
return new ImportApplicationWizard();
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method cancel.
/**
* Waits and clicks Cancel button .
*/
public void cancel() {
new WaitUntil(new ControlIsEnabled(new CancelButton()), TimePeriod.LONG);
new CancelButton().click();
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method signToOpenShiftAndClickNext.
private void signToOpenShiftAndClickNext() {
new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD);
selectConnection(username, server, new DefaultCombo(0));
new NextButton().click();
processUntrustedSSLCertificate();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
new WaitUntil(new ControlIsEnabled(new BackButton()), TimePeriod.LONG);
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method openWizardFromCentral.
/**
* Opens a new OpenShift application wizard from JBoss Central.
*/
public void openWizardFromCentral() {
new DefaultToolItem(new WorkbenchShell(), OpenShiftLabel.Others.RED_HAT_CENTRAL).click();
new WaitUntil(new CentralIsLoaded());
new InternalBrowser().execute(OpenShiftLabel.Others.OPENSHIFT_CENTRAL_SCRIPT);
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_APP_WIZARD), TimePeriod.LONG);
signToOpenShiftAndClickNext();
new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method next.
/**
* Waits and clicks Next button.
*/
public void next() {
new WaitUntil(new ControlIsEnabled(new NextButton()), TimePeriod.LONG);
new NextButton().click();
}
Aggregations