DEV Community

JavaScript Selenium Mocha QuickStart Guide

Stephen Cavender on July 20, 2016

Getting started with JavaScript, Selenium and Mocha! In this article we’ll be using Mocha and Selenium to write tests for web applicatio...
Collapse
 
patricspires profile image
Patric Pires

Nice post, thank you for sharing it with us. I think maybe you need put only:

describe('Test', function () {...}
Enter fullscreen mode Exit fullscreen mode

and

it('Title should be "The Internet"', function () {...}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
stephencavender profile image
Stephen Cavender

Thanks! Did an update to Mocha allow this syntax or did I just make mine more complicated than it needed to be?

Collapse
 
pavithrabt profile image
pavithrabt

title: Error message while trying to write a Feature file
published: true
description: I am new to the Selenium+JavaScript. Started implementing BDD framework. I have Atom as editor, trying to implement BDD framework using Cucumber. I am getting a warning message on right top corner as "cucumber-autocomplete: cannot find features directory at C:\work\Vuelio UX/features. please update your settings to point to the location of your features directory"

Collapse
 
stephencavender profile image
Stephen Cavender

Unfortunately I'm not familiar with cucumber so I don't have any possible solutions to your issue. Have you figured it out?