Search in sources :

Example 6 with InternalBrowser

use of org.eclipse.reddeer.swt.impl.browser.InternalBrowser 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();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) InternalBrowser(org.eclipse.reddeer.swt.impl.browser.InternalBrowser) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) CentralIsLoaded(org.jboss.tools.openshift.reddeer.condition.CentralIsLoaded) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Example 7 with InternalBrowser

use of org.eclipse.reddeer.swt.impl.browser.InternalBrowser in project jbosstools-openshift by jbosstools.

the class StoreConnectionTest method invokeNewAppWizardFromCentral.

private void invokeNewAppWizardFromCentral() {
    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);
    new DefaultShell("New OpenShift Application");
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) InternalBrowser(org.eclipse.reddeer.swt.impl.browser.InternalBrowser) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) DefaultToolItem(org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem) CentralIsLoaded(org.jboss.tools.openshift.reddeer.condition.CentralIsLoaded) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Aggregations

InternalBrowser (org.eclipse.reddeer.swt.impl.browser.InternalBrowser)7 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)6 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)6 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)4 DefaultToolItem (org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem)4 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)4 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)3 Test (org.junit.Test)3 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)2 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)2 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)2 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)2 CentralIsLoaded (org.jboss.tools.openshift.reddeer.condition.CentralIsLoaded)2 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)2 RedDeerException (org.eclipse.reddeer.common.exception.RedDeerException)1 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)1 WithTextMatcher (org.eclipse.reddeer.core.matcher.WithTextMatcher)1 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)1 ShellIsActive (org.eclipse.reddeer.swt.condition.ShellIsActive)1 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)1