@Test public void shouldInvokeSendKeys() { TypeTextAction action = new TypeTextAction(); action.perform(mockElement); verify(mockElement, times(1)).sendKeys(); }
@Override public void perform(final WebElement target) { if (delayMillis == 0) { sendKeysWithoutDelay(target); } else { sendKeysWithDelay(target); } }
TypeTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { if (delayMillis == 0) { sendKeysWithoutDelay(target); } else { sendKeysWithDelay(target); } } }
TypeTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { if (delayMillis == 0) { sendKeysWithoutDelay(target); } else { sendKeysWithDelay(target); } } TypeTextAction(final CharSequence... keysToSend); }
TypeTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { if (delayMillis == 0) { sendKeysWithoutDelay(target); } else { sendKeysWithDelay(target); } } TypeTextAction(final CharSequence... keysToSend); static TypeTextAction typeTextAction(final CharSequence... keysToSend); @Override void perform(final WebElement target); @Override synchronized Action withDelayMillis(final long delayMillis); }
TypeTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { if (delayMillis == 0) { sendKeysWithoutDelay(target); } else { sendKeysWithDelay(target); } } TypeTextAction(final CharSequence... keysToSend); static TypeTextAction typeTextAction(final CharSequence... keysToSend); @Override void perform(final WebElement target); @Override synchronized Action withDelayMillis(final long delayMillis);  }