Using JBehave and Selenium WebDriver in Java
JBehave is another famous framework for BDD/ATDD in Java. Similar to Cucumber-JVM, JBehave allows the writing of features as stories in the Gherkin language. Steps from the scenarios are later implemented in a step definition file.
In this recipe, we will explore using JBehave and Selenium WebDriver together for creating tests on a BMI calculator application.
Getting ready
You need to download and set up the JBehave Web extension, which is based on JBehave Core. It provides support for web-related access or functionality, including Selenium/WebDriver support.
The latest release of JBehave Web Distribution is available in JBehave's repository at Codehaus Nexus. You need to download the latest jbehave-web-distribution from https://nexus.codehaus.org/content/repositories/releases/org/jbehave/web/jbehave-web-distribution/.
Download the complete zip archive from the previously mentioned location. For this recipe, jbehave-web-distribution-3.5-bin.zip
is...