use of org.eclipse.reddeer.swt.condition.TableHasRows in project jbosstools-openshift by jbosstools.
the class DeleteResourcesWizard method openWizardFromExplorer.
/**
* Opens a new OpenShift 3 Delete Resources... wizard from OpenShift Explorer view with the given project pre-selected.
* If the project is null, a generated project is used.
*
* @param project project name for deleting resources
*/
public void openWizardFromExplorer(String project) {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.reopen();
selectExplorerProject(project, explorer);
new ContextMenuItem(OpenShiftLabel.ContextMenu.DELETE_RESOURCES).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.DELETE_OS_RESOURCES), TimePeriod.LONG);
new DefaultShell(OpenShiftLabel.Shell.DELETE_OS_RESOURCES);
new WaitUntil(new TableHasRows(new DefaultTable()), TimePeriod.LONG);
}
Aggregations