Thanks for coming to Drupalcamp London 2017.

Videos will appear here within a few weeks.

See you in 2018!!

Automate Testing with Behat, Selenium, PhantomJs and Nightwatch.js

Track: Coding and Development | Skill level: Intermediate

Why test?

  1. To ensure what we have built  does what it is supposed to do.

  2. Something that works when one person uses it, may not work when many people are using it.

  3. There is always a chance that a user really will do something unexpected.

  4. There are many different devices, browsers, and operating systems in widespread use.

  5. We owe it to our users and ourselves to deliver the best application we can.


Types of testing (at high level):

  1. Unit testing

  2. Functional testing

  3. UI testing


To support these types of testing, a plethora of testing tools have emerged. Specific frameworks are used for specific types of testing.

In this session we are going to explore Behat, Selenium, PhantomJs and Nightwatch.js and also explain when should we use these tools.


What we will discuss:

  1. What is testing?

  2. Why is testing needed?

  3. Types of testing

  4. Headless browser testing

  5. Real browser testing

  6. PhantomJs

  7. Selenium

  8. Behat

  9. Nightwatch.js

  10. PhantomJs vs Selenium vs Behat vs Nightwatch.js

  11. CasperJS with PhantomJs

  12. Behat with mink

  13. Behat with Selenium

  14. Demo

Keynote Speakers

Matt Glaman

Matt Glaman

(Saturday keynote)

Matt Glaman is a developer at Commerce Guys. He is an open source developer who has been working with Drupal since 2013. He is author of the Drupal 8 Development Cookbook, maintainer of, and lover of Irish Whiskey.

Twitter: @nmdmatt

Jeffrey A 'JAM' McGuire

Jeffrey A. "jam" McGuire

(Sunday keynote)

Jeffrey A. "jam" McGuire—Evangelist, Developer Relations at Acquia—is a memorable and charismatic communicator with a strong following at the intersection of open source software, business, and culture. He is a frequent keynote speaker at events around the world. He writes and talks about technology, community, and more on weekly podcasts and as a blogger on This all helps satisfy his inner diva, which he also feeds with performances as a storyteller and musician.

Twitter: @horncologne

Danese Cooper

Danese Cooper

(Sunday closing keynote)

Danese Cooper currently serves as chairperson of the Node.js Foundation. She also works in an open source role at PayPal. Previously she was Director of the Open Source Hardware Association and CTO of the Wikimedia Foundation. She had brief stint at the Bill & Melinda Gates Foundation as a consulting open source strategist. She has been involved with open source since 1999.

Twitter: @divadanese

CxO Day Speakers

Sarah Wood OBE

Unruly Co-Founder (CEO)

Sarah Wood

David Axmark

Co-founder of MySQL

David Axmark

Ben Finn OBE

Co-Founder of Sibelius and CEO at Stealth Poker

Ben Finn

Barney Brown

Head of Digital at Cambridge University

Barney Brown

Professor Andre Spicer

Professor of Organisational Behaviour at Cass Business School City, University London

Andre Spicer

Paul Reeves

Reevo UN Limited

Paul Reeves



CxO Day

Drupal apprentices

The best people to train new developers are developers

The Drupal Apprenticeship Scheme will be running a London intake in March. If you are interested in hiring an apprentice or know someone who would benefit from the scheme please get in touch via the link below.

  • Created and run by experienced developers
  • Teaches core skills and best practice
  • Extensive support for businesses and teams

We are also really keen to hear from people who might be interested in mentoring, training and helping us to develop and review training materials to make sure they stay absolutely current and relevant.

Find out more

Join the Drupal Association

The Drupal Association unites a global open source community to build and promote Drupal.

The Association is a not-for-profit organization that relies on individuals and businesses to fund everything they do for Drupal — from to DrupalCon and community programs.

Connect with us and support our mission-driven work.

Support the Drupal Association