/** Press Validate button */ public void validateSettings() { PushButton validate = new PushButton("Validate Settings"); validate.click(); while (!validate.isEnabled()) { AbstractWait.sleep(TimePeriod.NORMAL.getSeconds()); } }
@Test public void testInternalBrowser() { try { Browser b = new InternalBrowser(); b.setURL("http://www.google.com"); final int limit = 100; // 100 cycles maximum int counter = 0; while (!b.isPageLoaded() && counter < limit) { counter++; AbstractWait.sleep(100); } } catch (SWTLayerException e) { fail("Browser should be available"); } }
private OpenCDINamedBeanDialog openSearchNamedDialog() { AbstractWait.sleep(TimePeriod.SHORT); new ShellMenu(IDELabel.Menu.NAVIGATE, IDELabel.Menu.OPEN_CDI_NAMED_BEAN).select(); new DefaultShell("Open CDI Named Bean"); return new OpenCDINamedBeanDialog(); }