use of org.eclipse.swtbot.swt.finder.widgets.SWTBotBrowser in project epp.mpc by eclipse.
the class AbstractMarketplaceWizardBotTest method marketplaceBrowser.
protected SWTBotBrowser marketplaceBrowser() {
SWTWorkbenchBot wbBot = new SWTWorkbenchBot();
Matcher<IEditorReference> marketplaceBrowserMatch = allOf(WidgetMatcherFactory.<IEditorReference>withPartId("org.eclipse.ui.browser.editor"), WidgetMatcherFactory.<IEditorReference>withTitle(containsString("Marketplace")));
SWTBotEditor browserEditor = wbBot.editor(marketplaceBrowserMatch);
SWTBotBrowser browser = browserEditor.bot().browser();
return browser;
}
use of org.eclipse.swtbot.swt.finder.widgets.SWTBotBrowser in project epp.mpc by eclipse.
the class MarketplaceWizardTest method checkMarketplaceBrowser.
private void checkMarketplaceBrowser() {
SWTBotBrowser browser = marketplaceBrowser();
tryWaitForBrowser(browser);
String url = browser.getUrl();
assertTrue(url.contains("://marketplace.eclipse.org/content/"));
// wizard is still open
assertTrue(wizardShell.isOpen());
// but no longer the active shell
assertFalse(wizardShell.isActive());
}
Aggregations