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 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.