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 trialRichard Preske
Courses Plus Student 4,356 Pointswhat is doing this? Chrome is being controlled by automated software after I type driver constant. Please explain.
C:\WINDOWS\system32>cd ..
C:\Windows>cd ..
C:>cd program files
C:\Program Files>cd nodejs
C:\Program Files\nodejs>cd selenium basics
C:\Program Files\nodejs\selenium basics>node Welcome to Node.js v12.16.1. Type ".help" for more information.
require('chromedriver'); { path: 'C:\Program Files\nodejs\node_modules\chromedriver\lib\chromedriver\chromedriver.exe', version: '81.0.4044.69', start: [Function], stop: [Function] } const selenium = require("selenium-webdriver"); undefined const driver = new selenium.Builder().forBrowser("chrome").build(); undefined
DevTools listening on ws://127.0.0.1:56234/devtools/browser/1b84583d-c258-47a7-b483-2eec05144b67 [18540:19328:0422/090836.332:ERROR:browser_switcher_service.cc(238)] XXX Init()
Richard Preske
Courses Plus Student 4,356 PointsI did google search on the error at the end and nothing relates to what I am experiencing. There are plenty of other reasons why this error comes up like the browser closing after someone ran a selenium test on its own. There was a fix for that. But that is not what it's doing. Here, a browser pops open with "data;" in the tab and is a blank page. Using Chrome and chromewebdriver is installed and running properly when I checked the version. It is version 81.xxxxx.
1 Answer
Beau Genereux
5,362 PointsSelenium allows you to run automated scripts such as tests on different browsers, such as Chrome, Safari, and Firefox. Check out this video and this course for more info: https://teamtreehouse.com/library/what-is-selenium
Richard Preske
Courses Plus Student 4,356 PointsRichard Preske
Courses Plus Student 4,356 PointsI uninstalled selenium-webdriver, re-installed selenium-webriver@3. I'm wondering if this is malicious software?