empower your people,
empower your organization
Call:  08000 199337 From overseas call +44 20 7264 2185
face-to-face training
Training Since 2002
Online Learning
Certified Trainers with 20+ Year's Experience
Virtual classroom training
Above Industry Average Pass Rates
7-key IT disciplines
No Fee Course Resits

Enjoy live training & exams NOW from your own home Learn more Now offering Remotely Proctored ExamsLearn More

BDD with Cucumber JavaScript and Selenium WebDriver

About the Course

Course Duration: 2 days in the classroom or 3 days online

Price From: TBC


Private Course: Click Here

Behaviour-Driven Development (BDD) has become a well established approach to testing, providing ‘living documentation’ of the system under test, and being able to use the documentation to drive the test automation. Our BDD courses teach you what BDD is all about, how to write your Gherkin Feature files, and then how to bind the test automation code to the features.

The perfect introductory course on Behaviour-Driven Development. This course covers writing Feature Files in Gherkin, then generating Step Definitions and then writing the code bindings using Selenium WebDriver JavaScript. This course uses Cucumber-JS, and Selenium WebDriver JavaScript all in Microsoft’s Visual Code. The course prerequisite is that you have done some WebDriver or sat on our 3 day WebDriver JS course.

Entry Requirements

  • A basic understanding of writing Selenium WebDriver JavaScript Tests or attended our
    WebDriver JS course.
  • Some programming experience would be advantageous – The course is based on
    using WebDriver JavaScript & Chai with NodeJS, but does not teach you JavaScript
    as you can use a variety of programming languages with WebDriver and Cucumber.


There is no exam requirement for this course.

Course Objectives

  • understand the required installs and packages to use Cucumber
  • understand how to structure your automated Cucumber project
  • gain a full understanding of how to write good Gherkin and Step Definitions
  • Understand how to refactor and re-use common Methods for Steps
  •  By the end of the course you should have a thorough understanding of how to develop well-written Feature Files and Scenarios, How to manage Step Definitions and write associated Methods, how to organise the Cucumber project and how to integrate into the POM framework

Syllabus – Key points

Introduction to BDD
A background to BDD and its benefits. The process of BDD. An overview of the tools available, terminology.

Introduction to Gherkin
Feature Files, introduction to the Gherkin language, basic syntax

More Gherkin
Using the Background fixture, Parameters, Doc Strings, Examples and Data Tables, using Tags to organise execution, commenting

Installation of the Cucumber Framework
Installing Cucumber with npm. Creating a project structure, creating a Feature, execution of Feature Files

Step Definitions & Code Binding
Using prototype step definitions, creating step definition Methods, expanding Methods with Parameters, Step Definition syntax, using Regular Expressions

Running the Cucumber Tests
Using Cucumber Command Line Interface, CLI parameters, Results & Reporting, HTML reports

Using Hooks in cucumber-js (BeforeAll, Before, After, AfterAll), Cucumber Timeouts

The Cucumber World Object
Attaching items to World, Creating your own custom World Constructor

Tables & Scenario Outlines
In-line Step Table Iterating, Scenario Outline Data Handling

Integrating Cucumber into the POM
Using Cucumber & WebDriver under the Page Object Model. Using Helpers

VS Code Tips
Cucumber Icon Packs, Setting up GoTo Definitions Shortcut, Debugging scripts


There are no reviews yet.

Be the first to review “BDD with Cucumber JavaScript and Selenium WebDriver”

Your email address will not be published. Required fields are marked *

View dates and book

Select the BDD with Cucumber JavaScript and Selenium WebDriver Classroom & Virtual Course

Now offering VIRTUAL courses. Enjoy live training NOW from your home Learn more
There are no dates scheduled for this course now. Please call Paula Jones to enquire about this course on 08000 199337, if you\'re calling overseas please call +44 207 264 2185. Alternatively, please email p.jones@tsg-training.co.uk and she’ll be in contact with you shortly.

This product is currently out of stock and unavailable.

Types of Exams

Pearson Vue Voucher Exams

Online Exam

Classroom Exam



We operate from ten training centres across the country, giving you more choice for where to attend

  • Birmingham
  • Bristol
  • London
  • Milton Keynes
  • Reading
  • Borehamwood
  • Leeds
  • Manchester
  • Nottingham
  • Southampton