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 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?