We are using Selenium WebDriver and JBehave to run \"integration\" tests on our web-app. I have a method that will enter a value into a form input.
@When(\
This is how to do it:
@When("I select $elementId value $value") public void selectComboValue(final String elementId, final String value) { final Select selectBox = new Select(web.findElement(By.id(elementId))); selectBox.selectByValue(value); }