CheckTextWebAction extends WebSymbolAction { public void setValue(String value) { this.value = value; } CheckTextWebAction(); @Override ExecuteResult execute(WebSiteConnector connector); String getValue(); @JsonIgnore @Transient String getValueWithVariableValues(); void setValue(String value); boolean isRegexp(); void setRegexp(boolean regexp); WebElementLocator getNode(); void setNode(WebElementLocator node);  }
@Test public void shouldEncodeHtmlCharsInValue() { given(webSiteConnector.getDriver().getPageSource()).willReturn(createHtmlDoc("<div>this is a $&amp; test</div>")); checkText.setValue("this is a $& test"); assertTrue(checkText.executeAction(connectors).isSuccess()); }