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

Richard Preske
PLUS
Richard Preske
Courses Plus Student 4,355 Points

what 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
Richard Preske
Courses Plus Student 4,355 Points

I uninstalled selenium-webdriver, re-installed selenium-webriver@3. I'm wondering if this is malicious software?

Richard Preske
Richard Preske
Courses Plus Student 4,355 Points

I 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

Selenium 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