public JButtonFixture refresh() { return me().button("importClipboard.refresh"); }
public JButtonFixture cancel() { return me().button(matcherForButtonWithText("Cancel")); }
public JButtonFixture cancel() { return me().button(matcherForButtonWithText("Cancel")); }
public static void close(Robot robot) { LOGGER.info("Closing confirmation dialog"); final DialogFixture confirmDialog = WindowFinder.findDialog(new GenericTypeMatcher<Dialog>(Dialog.class) { @Override protected boolean isMatching(@Nonnull Dialog component) { return component.getTitle().equals("Are you sure?"); } }).using(robot); final JButtonFixture ok = confirmDialog.button(new GenericTypeMatcher<JButton>(JButton.class) { @Override protected boolean isMatching(@Nonnull JButton component) { return component.getText().equals("OK"); } }); ok.click(); await() .atMost(30, TimeUnit.SECONDS) .ignoreExceptions() .until(confirmDialog::requireNotVisible); LOGGER.info("Confirmation dialog is closed"); } }
LOGGER.info(" opening file " + name); vfsBrowserDialog.textBox("VfsBrowser.filter").setText(name); vfsBrowserDialog.button("VfsBrowser.refresh").click(); await().ignoreExceptions().until(() -> table.cell(TableCell.row(1).column(0)).click()); vfsBrowserDialog.button("VfsBrowser.open").click(); LOGGER.info(" file " + file.getAbsolutePath() + " opened");
public LogViewPanel startListening() { me().button(matcherForButtonWithText("OK")).click(); return new LogViewPanel(new MainFrame(robot).me(),robot); }
public LogViewPanel importLogs() { me().button(matcherForButtonWithText("Import")).click(); return new LogViewPanel(new MainFrame(robot).me(),robot); }