Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to Selenium !
You have completed Introduction to Selenium !
Preview
Automation code should be treated with the same level of respect as we treat our production code. In this video, we will start a new file and take a swing at removing the code repetition.
Download
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We're getting pretty good at this stuff,
aren't we?
0:00
If you've done some other types
of programming, you probably
0:00
have realized that we're doing a lot of
repeating ourselves there in the REPL.
0:02
We keep typing the same code over and
over.
0:06
This breaks a fundamental principle of
coding, and that is the DRY principle.
0:10
Don't repeat yourself.
0:14
Automation code should be treated
with the same level of respect
0:16
as we treat our production code.
0:19
So let's see if we can evolve our
exploration into an actual living program.
0:21
Let's go ahead and start a new file and
0:25
take a swing at removing
the code repetition.
0:27
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