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 Automation Nation Getting Started

Getting the term ...not recognized as the name of a cmdlet, function, script file or operable program.

This is what I have per the video and the next video in my index.js file

const selenium = require("selenium-webdriver"); const By = selenium.By;

const driver = new selenium.Builder() .forBrowser("chrome") .build();


const locators = { inviteeForm: By.id("registrar"), inviteeNameField: By.name("name"), toggleNonRespondersVisibility: By.css("main > div input") };

function addInvitee(name) { driver.findElement(locators.inviteeNameField) .sendKeys("name"); driver.findElement(locators.inviteeForm).submit(); }

function toggleNonRespondersVisibility() { driver.findElement(locators.toggleNonRespondersVisibility) .click();


addInvitee("Muhamed Hassan"); addInvitee("Steve Hunter");


Here is the complete error: PS C:\Users\eholland\Desktop\selenium-basics> URL=http://port-80-7r11ecc4gy.treehouse-app.com/ node index.js

URL=http://port-80-7r11ecc4gy.treehouse-app.com/ : The term 'URL=http://port-80-7r11ecc4gy.treehouse-app.com/' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

I'm still having this problem, may I know whats the solution for this issue?

1 Answer

Nikita Novikov
Nikita Novikov
5,929 Points

I have the same issue, who can help with it?