O'Reilly logo

Selenium Testing Tools Cookbook by Unmesh Gundecha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required