Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Ideally we will not add IDs throughout our document. In this video, we will use our documentation to look at the static methods available for finding elements.
Shared code
const selenium = require("selenium-webdriver");
const By = selenium.By;
const driver = new selenium.Builder().forBrowser("chrome").build();
driver.get(process.env.URL);
Windows instructions
In windows this takes two commands, first you set your environment variable, then you call node
set URL=http://www.your-url-here.com
node
Learn more
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Thiago Maciel
855 Points0 Answers
-
Henry Brenton
10,144 Points0 Answers
-
CadenceH Cha
409 PointsI can not get the actual page to pull up; I see data; on the url line. I see ... on my terminal.
Posted by CadenceH ChaCadenceH Cha
409 Points1 Answer
-
MOD
Jonathan Grieve
Treehouse Moderator 91,254 Points3 Answers
-
Torria Cason
80 PointsIs there any way to add everything to an IDE such as IntelliJ in order to avoid having to declare variables each time?
Posted by Torria CasonTorria Cason
80 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up