Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Quality Assurance Intermediate Selenium WebDriver Use Selenium with Testing Frameworks Selenium and Mocha

error: Cannot find module 'selenium-webdriver/testing'

error: Cannot find module 'selenium-webdriver/testing'

Please how do I resolve this? I have followed everything in the video but I still can not fix this error

Type “.help” for more information.
> require(“selenium-webdriver/testing”);
Uncaught Error: Cannot find module ‘selenium-webdriver/testing’
Require stack:
- <repl>
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18) {
  code: ‘MODULE_NOT_FOUND’,
  requireStack: [ ‘<repl>’ ]
}

when I run the code like this

const {Browser, By, Key, until} = require("selenium-webdriver");
const assert = require('assert');

describe('RSVP site', function() {
    it('has invitee', function() {
        assert(1===1);
    });
});

I want it to work like the code in the lecture because it is needed for the rest of the course. please how I can fix this

from what I read it seems this was removed from selenium

https://github.com/SeleniumHQ/selenium/issues/8458

for this course should be updated to stay relevant. could not complete this course because of this