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

C# C# Objects Inheritance Throwing Exceptions

Joshua Thao
Joshua Thao
6,439 Points

I was getting an error not found so I downloaded Chromedriver latest version from google. Now IDK what to do.

I downloaded Chromedriver from google because it kept saying my driver was not found. I created a folder called "webdrivers" in my local disk with the "Chromedriver" application following this video "https://www.youtube.com/watch?v=dz59GsdvUF8". Now if I type "driver.get(url); it shows this message

Joshua Thao
Joshua Thao
6,439 Points

Microsoft Windows [Version 10.0.17134.345] (c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\JT>npm install chromedriver -g C:\Users\JT\AppData\Roaming\npm\chromedriver -> C:\Users\JT\AppData\Roaming\npm\node_modules\chromedriver\bin\chromedriver

chromedriver@2.43.1 install C:\Users\JT\AppData\Roaming\npm\node_modules\chromedriver node install.js

Downloading https://chromedriver.storage.googleapis.com/2.43/chromedriver_win32.zip Saving to C:\Users\JT\AppData\Local\Temp\chromedriver\chromedriver_win32.zip Received 782K... Received 1566K... Received 2350K... Received 3134K... Received 3529K total. Extracting zip contents Copying to target path C:\Users\JT\AppData\Roaming\npm\node_modules\chromedriver\lib\chromedriver Done. ChromeDriver binary available at C:\Users\JT\AppData\Roaming\npm\node_modules\chromedriver\lib\chromedriver\chromedriver.exe

┌─────────────────────────────────────────────────────────┐ │ npm update check failed │ │ Try running with sudo or get access │ │ to the local update config store via │ │ sudo chown -R $USER:$(id -gn $USER) C:\Users\JT.config │ └─────────────────────────────────────────────────────────┘

C:\Users\JT>chromdriver --version 'chromdriver' is not recognized as an internal or external command, operable program or batch file.

C:\Users\JT>chromedriver --version ChromeDriver 2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a)

C:\Users\JT>cd selenium-basics/

C:\Users\JT\selenium-basics>node

const selenium = require("selenium-webdriver"); undefined const driver = new selenium.Builder().forBrowser("chrome").build(); undefined

DevTools listening on ws://127.0.0.1:57470/devtools/browser/80a006c5-58c7-4b13-ae27-c673d404f866 const url = "http://port-80-zic32apvdv.treehouse-app.com/"; undefined driver.get(url); Promise { <pending>, domain: Domain { domain: null, _events: { error: [Function: debugDomainError] }, _eventsCount: 1, _maxListeners: undefined, members: [] } } (node:6996) UnhandledPromiseRejectionWarning: WebDriverError: chrome not reachable (Session info: chrome=70.0.3538.77) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) at Object.checkLegacyResponse (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\lib\error.js:585:15) at parseHttpResponse (C:\Users\JT\selenium-basics\node_modules\selenium-webdriver\lib\http.js:533:13)

at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7)

(node:6996) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:6996) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections >