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 Introduction to Selenium Test Drive Selenium Installation

Joshua Thao
Joshua Thao
6,439 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.