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

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…

Contents