From the course: DevOps Foundations: Your First Project
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Setting up Selenium
From the course: DevOps Foundations: Your First Project
Setting up Selenium
Alright, let's jump right into setting up Selenium. We need to set this up in two places, our test and our Compose file. Let's start with our test. We can go there by just using Ctrl + R and typing in Vim and finding the command that ends in "spec.rb". Unfortunately, the Capybara documentation doesn't have an example of setting up Selenium in a way that works with Docker easily. So to simplify things, the exercise files for this chapter have a version of this test that has all the code you need to enable that configuration. So what we're going to do is we're going to go to the second tab that we opened earlier, clear all this out with Control + L, and then we're going to copy the updated version of page_spec from our exercise files bundle. We can find it in the "05_08_before" folder. So what we're going to do here is we're going to type in "cp" and then you're going to provide the path to your exercise files. So in my case it's going to be "~/Downloads /exercise_files". Then we're…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Test often, ship often3m 56s
-
(Locked)
Setting up your test7m 35s
-
(Locked)
Viewing our test harness in Docker Compose5m 47s
-
(Locked)
Updating the Dockerfile4m 36s
-
(Locked)
Running the test1m 15s
-
Finding criteria for a unit test3m 5s
-
(Locked)
Writing the unit test8m 38s
-
(Locked)
Setting up Selenium5m 2s
-
(Locked)
Running your test with Selenium4m 7s
-
(Locked)
-
-
-