@Test public void shouldInvokeClearAndSendKeys() { ReplaceTextAction action = new ReplaceTextAction(); action.perform(mockElement); verify(mockElement, times(1)).clear(); verify(mockElement, times(1)).sendKeys(); }
@Override public void perform(final WebElement target) { clearAction.perform(target); typeTextAction.perform(target); }
ReplaceTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { clearAction.perform(target); typeTextAction.perform(target); } }
ReplaceTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { clearAction.perform(target); typeTextAction.perform(target); } ReplaceTextAction(final CharSequence... keysToSend); }
ReplaceTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { clearAction.perform(target); typeTextAction.perform(target); } ReplaceTextAction(final CharSequence... keysToSend); static ReplaceTextAction replaceTextAction(final CharSequence... keysToSend); @Override void perform(final WebElement target); @Override Action withDelayMillis(final long delayMillis); }
ReplaceTextAction implements Action, Delayable { @Override public void perform(final WebElement target) { clearAction.perform(target); typeTextAction.perform(target); } ReplaceTextAction(final CharSequence... keysToSend); static ReplaceTextAction replaceTextAction(final CharSequence... keysToSend); @Override void perform(final WebElement target); @Override Action withDelayMillis(final long delayMillis);  }