Search in sources :

Example 11 with WorkbenchShell

use of org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell in project jbosstools-openshift by jbosstools.

the class AbstractOpenShiftApplicationWizard method openWizardFromShellMenu.

/**
 * Opens new application wizard via shell menu File - New. There has to be
 * an existing connection in OpenShift explorer, otherwise method fails.
 */
public void openWizardFromShellMenu() {
    new WorkbenchShell().setFocus();
    new NewWizard().open();
    new DefaultShell("New").setFocus();
    new DefaultTreeItem("OpenShift", "OpenShift Application").select();
    new NextButton().click();
    signToOpenShiftAndClickNext();
    new DefaultShell(OpenShiftLabel.Shell.NEW_APP_WIZARD).setFocus();
}
Also used : WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) NextButton(org.eclipse.reddeer.swt.impl.button.NextButton) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) NewWizard(org.eclipse.reddeer.eclipse.ui.dialogs.NewWizard) DefaultTreeItem(org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)

Aggregations

WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)11 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)8 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)7 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)6 DefaultToolItem (org.eclipse.reddeer.swt.impl.toolbar.DefaultToolItem)5 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)4 InternalBrowser (org.eclipse.reddeer.swt.impl.browser.InternalBrowser)4 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)4 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)3 DefaultTreeItem (org.eclipse.reddeer.swt.impl.tree.DefaultTreeItem)3 Test (org.junit.Test)3 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)2 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)2 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)2 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)2 DefaultCombo (org.eclipse.reddeer.swt.impl.combo.DefaultCombo)2 LabeledCombo (org.eclipse.reddeer.swt.impl.combo.LabeledCombo)2 LabeledText (org.eclipse.reddeer.swt.impl.text.LabeledText)2 CentralIsLoaded (org.jboss.tools.openshift.reddeer.condition.CentralIsLoaded)2 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)1