by name JButtonFixture button = window.button("login"); // by type JButtonFixture button @Override protected boolean isMatching(JButton button) { return "Login".equals(button.getText()) We can also specify a custom value for the timeout..