Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Quality Assurance Introduction to Selenium Test Drive Selenium Installation

Joshua Thao
Joshua Thao
6,438 Points

Are we suppose to be using chrome web browser? I get this error driver.get(url); ReferenceError: driver is not defined

const driver = new selenium.Builder().forBrowser("chrome").build(); Error: The ChromeDriver could not be found on the current PATH. Please download the latest version of the ChromeDriver from http://chromedriver.storage.googleapis.com/index.html and ensure it can be found on your PATH. at new ServiceBuilder (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\chrome.js:232:13) at getDefaultService (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\chrome.js:321:22) at Function.createSession (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\chrome.js:696:44) at createDriver (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\index.js:155:33) at Builder.build (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\index.js:647:16)

require ('chromedriver'); Error: Cannot find module 'chromedriver' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) const driver = new selenium.Builder().forBrowser("chrome").build(); SyntaxError: Identifier 'driver' has already been declared const url = "port-80-zic32apvdv.treehouse-app.com const url = "port-80-zic32apvdv.treehouse-app.com ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token

const url = "port-80-zic32apvdv.treehouse-app.com"; undefined driver.get(url); ReferenceError: driver is not defined

I'm having the same issue too.