public RepoTargetForm save() { save.click(); new Window(selenium).waitFor(); return this; }
public LogsViewTab(Selenium selenium) { super(selenium, "window.Ext.getCmp('view-logs')"); reload = new Button(selenium, expression + ".topToolbar.items.items[0]"); download = new Button(selenium, expression + ".topToolbar.items.items[1]"); selectDocument = new Button(selenium, expression + ".topToolbar.items.items[2]"); documents = new Menu(selenium, selectDocument.getExpression() + ".menu"); tail = new Checkbox(selenium, expression + ".topToolbar.items.items[5]"); tailUpdate = new Button(selenium, expression + ".tailUpdateButton"); logContent = new TextArea(selenium, "window.Ext.getCmp('log-text')"); }
public void selectFile(String fileName) { selectDocument.click(); try { Thread.sleep(1000); } catch (InterruptedException e) { // just ignore } documents.click(fileName); logContent.waitToLoad(); }
public MessageBox delete() { delete.click(); return new MessageBox(selenium); }
public RouteForm addRoute() { add.click(); return new RouteForm(selenium, "window.Ext.getCmp('route-config-forms')"); }
public void cancel() { cancel.click(); }
public void removePattern(String pattern) { patterns.select(pattern); removeButton.click(); }
public PasswordChangedWindow changePasswordExpectingSuccess() { button.click(); waitForHidden(); return new PasswordChangedWindow(selenium); }