WaitForNodeAttributeAction extends WebSymbolAction { public void setMaxWaitTime(long maxWaitTime) { this.maxWaitTime = maxWaitTime; }  String getValue(); void setValue(String value); String getAttribute(); void setAttribute(String attribute); WaitCriterion getWaitCriterion(); void setWaitCriterion(WaitCriterion waitCriterion); long getMaxWaitTime(); void setMaxWaitTime(long maxWaitTime); WebElementLocator getNode(); void setNode(WebElementLocator node);  }
@Test public void shouldFailOnNegativeWaitTime() { action.setMaxWaitTime(-1L); final ExecuteResult result = action.executeAction(connectors); Assert.assertFalse(result.isSuccess()); }