1

Throw Err  Errtype: describe is not a function.

I have installed the mocha but while running this test using command then getting describe is not a function error.

1 Answers1

2

You are overwriting the mocha functions describe, before, after and it in line 2 of your script. I don't know how selenium is handling this, but I would try this:

  • Comment line 2
  • Run mocha mochaTest.js again -> Error should disappear

Next you should uncomment line 2 again and see if selenium-webdriver/testing is installed properly.

alexloehr
  • 1,773
  • 1
  • 20
  • 18