FillAction extends WebSymbolAction { public String getValue() { return value; }  @Override ExecuteResult execute(WebSiteConnector connector); WebElementLocator getNode(); void setNode(WebElementLocator node); String getValue(); void setValue(String value);  }
@Test public void shouldReturnOKIfNodeCouldBeFilled() { WebElement element = mock(WebElement.class); given(webSiteConnector.getElement(node)).willReturn(element); assertTrue(f.executeAction(connectors).isSuccess()); verify(element).sendKeys(f.getValue()); }