use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class AbstractOpenShiftApplicationWizard method finish.
/**
* Waits and clicks Finish button.
*/
public void finish() {
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class OpenShift3ConnectionWizard method finishAndHandleCertificate.
public void finishAndHandleCertificate() {
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
try {
new DefaultShell(OpenShiftLabel.Shell.UNTRUSTED_SSL_CERTIFICATE);
new PushButton("Yes").click();
} catch (RedDeerException ex) {
fail("Aceptance of SSL certificate failed.");
}
new WaitWhile(new ShellIsAvailable(OpenShiftLabel.Shell.NEW_CONNECTION), TimePeriod.LONG);
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project jbosstools-openshift by jbosstools.
the class OpenShift3ConnectionWizard method cancel.
/**
* Waits and clicks Cancel button .
*/
public void cancel() {
new WaitUntil(new ControlIsEnabled(new CancelButton()), TimePeriod.LONG);
new CancelButton().click();
waitForShellToClose(getShell());
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method editPort.
public void editPort(String oldContainerPort, String newContainerPort, String newHostAddress, String newHostPort) {
selectTab(PORTS_TAB_LABEL);
setPublishAllExposedPortsToRandomPorts(false);
if (selectItemInTable(oldContainerPort)) {
new PushButton("Edit...");
new WaitUntil(new ShellIsAvailable("Exposing a Container Port"));
new LabeledText("Container port:").setText(newContainerPort);
new LabeledText("Host address:").setText(newHostAddress);
new LabeledText("Host port:").setText(newHostPort);
new OkButton().click();
} else {
throw new EclipseLayerException("There is no " + oldContainerPort + " in table on tab " + PORTS_TAB_LABEL);
}
}
use of org.eclipse.reddeer.common.wait.WaitUntil in project linuxtools by eclipse.
the class RunDockerImageLaunchConfiguration method addPort.
public void addPort(String containerPort, String hostAddress, String hostPort) {
selectTab(PORTS_TAB_LABEL);
setPublishAllExposedPortsToRandomPorts(false);
new PushButton("Add...").click();
new WaitUntil(new ShellIsAvailable("Exposing a Container Port"));
new LabeledText("Container port:").setText(containerPort);
new LabeledText("Host address:").setText(hostAddress);
new LabeledText("Host port:").setText(hostPort);
new OkButton().click();
}
Aggregations