@Test public void shouldReturnFailedIfValueIsNotAnIndexNumber() { WebElement selectElement = mock(WebElement.class); given(webSiteConnector.getElement(node)).willReturn(selectElement); given(selectElement.getTagName()).willReturn("select"); s.setValue("definite not a number"); s.setSelectBy(SelectAction.SelectByType.INDEX); ExecuteResult result = s.executeAction(connectors); assertFalse(result.isSuccess()); }
public void setSelectBy(SelectByType selectBy) { this.selectBy = selectBy; }
SelectAction extends FillAction { public void setSelectBy(SelectByType selectBy) { this.selectBy = selectBy; } }
SelectAction extends FillAction { public void setSelectBy(SelectByType selectBy) { this.selectBy = selectBy; }  }
SelectAction extends FillAction { public void setSelectBy(SelectByType selectBy) { this.selectBy = selectBy; }  @Override ExecuteResult execute(WebSiteConnector connector); SelectByType getSelectBy(); void setSelectBy(SelectByType selectBy); }
SelectAction extends FillAction { public void setSelectBy(SelectByType selectBy) { this.selectBy = selectBy; }  @Override ExecuteResult execute(WebSiteConnector connector); SelectByType getSelectBy(); void setSelectBy(SelectByType selectBy);  }